home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-01-24 | 17.9 KB | [TEXT/MMCC] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Tue Jan 24 04:36:24 1995, modified Tue Jan 24 04:36:24 1995, creator 'MMCC', type ASCII, 17249 bytes "Quick3.c" , at 0x43e1 810 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MMCC] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 51 75 69 63 6b 33 | 2e 63 00 00 00 00 00 00 |..Quick3|.c......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 00 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 43 61 00 | 00 03 2a ab 4a 7a 98 ab |.....Ca.|..*.Jz..|
|00000060| 4a 7a 98 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |Jz......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 7b b5 00 00 |........|....{...|
|00000080| 2f 2a 0d 51 75 69 63 6b | 33 2e 63 20 0d 43 6f 70 |/*.Quick|3.c .Cop|
|00000090| 79 72 69 67 68 74 20 28 | 63 29 20 31 39 39 30 2d |yright (|c) 1990-|
|000000a0| 31 39 39 33 20 44 65 6e | 69 73 20 47 2e 20 50 65 |1993 Den|is G. Pe|
|000000b0| 6c 6c 69 20 0d 51 75 69 | 63 6b 33 2e 63 20 69 73 |lli .Qui|ck3.c is|
|000000c0| 20 61 20 43 20 70 72 6f | 67 72 61 6d 20 74 68 61 | a C pro|gram tha|
|000000d0| 74 20 6d 61 6b 65 73 20 | 6d 61 78 69 6d 75 6d 20 |t makes |maximum |
|000000e0| 6c 69 6b 65 6c 69 68 6f | 6f 64 20 66 69 74 73 20 |likeliho|od fits |
|000000f0| 6f 66 20 73 69 6d 70 6c | 65 20 6d 6f 64 65 6c 73 |of simpl|e models|
|00000100| 20 74 6f 0d 70 73 79 63 | 68 6f 6d 65 74 72 69 63 | to.psyc|hometric|
|00000110| 20 64 61 74 61 2e 20 54 | 68 69 73 20 69 73 20 61 | data. T|his is a|
|00000120| 20 72 65 70 6c 61 63 65 | 6d 65 6e 74 20 66 6f 72 | replace|ment for|
|00000130| 2c 20 61 6e 64 20 74 6f | 20 73 6f 6d 65 20 65 78 |, and to| some ex|
|00000140| 74 65 6e 74 20 69 73 20 | 64 65 72 69 76 65 64 20 |tent is |derived |
|00000150| 66 72 6f 6d 0d 74 68 65 | 20 6f 6c 64 20 51 55 49 |from.the| old QUI|
|00000160| 43 4b 2e 46 4f 52 20 70 | 72 6f 67 72 61 6d 20 77 |CK.FOR p|rogram w|
|00000170| 72 69 74 74 65 6e 20 62 | 79 20 41 2e 42 2e 57 61 |ritten b|y A.B.Wa|
|00000180| 74 73 6f 6e 2e 20 53 65 | 65 20 41 2e 42 2e 57 61 |tson. Se|e A.B.Wa|
|00000190| 74 73 6f 6e 20 28 31 39 | 37 39 29 0d 50 72 6f 62 |tson (19|79).Prob|
|000001a0| 61 62 69 6c 69 74 79 20 | 73 75 6d 6d 61 74 69 6f |ability |summatio|
|000001b0| 6e 20 6f 76 65 72 20 74 | 69 6d 65 2e 20 56 69 73 |n over t|ime. Vis|
|000001c0| 69 6f 6e 20 52 65 73 65 | 61 72 63 68 20 31 39 2c |ion Rese|arch 19,|
|000001d0| 20 35 31 35 2d 35 32 32 | 2e 0d 0d 54 68 65 20 70 | 515-522|...The p|
|000001e0| 72 69 6e 63 69 70 61 6c | 20 64 69 66 66 65 72 65 |rincipal| differe|
|000001f0| 6e 63 65 20 62 65 74 77 | 65 65 6e 20 74 68 69 73 |nce betw|een this|
|00000200| 20 70 72 6f 67 72 61 6d | 20 61 6e 64 20 74 68 65 | program| and the|
|00000210| 20 6f 72 69 67 69 6e 61 | 6c 20 51 55 49 43 4b 2c | origina|l QUICK,|
|00000220| 20 69 73 20 69 6e 20 68 | 6f 77 0d 74 68 65 20 67 | is in h|ow.the g|
|00000230| 6f 6f 64 6e 65 73 73 20 | 6f 66 20 66 69 74 20 69 |oodness |of fit i|
|00000240| 73 20 63 61 6c 63 75 6c | 61 74 65 64 2e 20 42 6f |s calcul|ated. Bo|
|00000250| 74 68 20 70 72 6f 67 72 | 61 6d 73 20 61 73 73 65 |th progr|ams asse|
|00000260| 73 73 20 74 68 65 20 67 | 6f 6f 64 6e 65 73 73 20 |ss the g|oodness |
|00000270| 6f 66 20 66 69 74 20 62 | 79 0d 63 6f 6d 70 61 72 |of fit b|y.compar|
|00000280| 69 6e 67 20 74 68 65 20 | 6c 6f 67 20 6c 69 6b 65 |ing the |log like|
|00000290| 6c 69 68 6f 6f 64 73 20 | 6f 66 20 74 68 65 20 6d |lihoods |of the m|
|000002a0| 6f 64 65 6c 20 66 69 74 | 20 28 75 73 75 61 6c 6c |odel fit| (usuall|
|000002b0| 79 20 57 65 69 62 75 6c | 6c 29 20 77 69 74 68 20 |y Weibul|l) with |
|000002c0| 61 20 6e 75 6c 6c 0d 68 | 79 70 6f 74 68 65 73 69 |a null.h|ypothesi|
|000002d0| 73 2e 20 4d 69 6e 75 73 | 20 74 77 6f 20 74 69 6d |s. Minus| two tim|
|000002e0| 65 73 20 74 68 69 73 20 | 6c 6f 67 20 6c 69 6b 65 |es this |log like|
|000002f0| 6c 69 68 6f 6f 64 20 72 | 61 74 69 6f 20 69 73 20 |lihood r|atio is |
|00000300| 61 70 70 72 6f 78 69 6d | 61 74 65 6c 79 20 63 68 |approxim|ately ch|
|00000310| 69 0d 73 71 75 61 72 65 | 2c 20 77 69 74 68 20 61 |i.square|, with a|
|00000320| 20 6e 75 6d 62 65 72 20 | 6f 66 20 64 65 67 72 65 | number |of degre|
|00000330| 65 73 20 6f 66 20 66 72 | 65 65 64 6f 6d 20 65 71 |es of fr|eedom eq|
|00000340| 75 61 6c 20 74 6f 20 74 | 68 65 20 64 69 66 66 65 |ual to t|he diffe|
|00000350| 72 65 6e 63 65 20 69 6e | 20 64 65 67 72 65 65 73 |rence in| degrees|
|00000360| 0d 6f 66 20 66 72 65 65 | 64 6f 6d 20 6f 66 20 74 |.of free|dom of t|
|00000370| 68 65 20 74 77 6f 20 68 | 79 70 6f 74 68 65 73 65 |he two h|ypothese|
|00000380| 73 2e 20 51 55 49 43 4b | 20 75 73 65 64 20 61 6e |s. QUICK| used an|
|00000390| 20 75 6e 63 6f 6e 73 74 | 72 61 69 6e 65 64 20 70 | unconst|rained p|
|000003a0| 73 79 63 68 6f 6d 65 74 | 72 69 63 0d 66 75 6e 63 |sychomet|ric.func|
|000003b0| 74 69 6f 6e 2c 20 77 68 | 69 63 68 20 61 64 6f 70 |tion, wh|ich adop|
|000003c0| 74 65 64 20 74 68 65 20 | 61 63 74 75 61 6c 20 70 |ted the |actual p|
|000003d0| 72 6f 70 6f 72 74 69 6f | 6e 20 63 6f 72 72 65 63 |roportio|n correc|
|000003e0| 74 20 61 74 20 65 61 63 | 68 20 63 6f 6e 74 72 61 |t at eac|h contra|
|000003f0| 73 74 2e 20 51 75 69 63 | 6b 33 0d 75 73 65 73 20 |st. Quic|k3.uses |
|00000400| 61 20 6d 6f 6e 6f 74 6f | 6e 65 20 68 79 70 6f 74 |a monoto|ne hypot|
|00000410| 68 65 73 69 73 20 74 68 | 61 74 20 69 73 20 63 6f |hesis th|at is co|
|00000420| 6e 73 74 72 61 69 6e 65 | 64 20 74 6f 20 62 65 20 |nstraine|d to be |
|00000430| 6d 6f 6e 6f 74 6f 6e 69 | 63 61 6c 6c 79 20 69 6e |monotoni|cally in|
|00000440| 63 72 65 61 73 69 6e 67 | 0d 61 73 20 61 20 66 75 |creasing|.as a fu|
|00000450| 6e 63 74 69 6f 6e 20 6f | 66 20 63 6f 6e 74 72 61 |nction o|f contra|
|00000460| 73 74 2e 20 54 68 65 20 | 76 69 72 74 75 65 20 6f |st. The |virtue o|
|00000470| 66 20 74 68 65 20 6c 61 | 74 74 65 72 20 68 79 70 |f the la|tter hyp|
|00000480| 6f 74 68 65 73 69 73 20 | 69 73 20 74 68 61 74 20 |othesis |is that |
|00000490| 69 74 20 69 73 0d 65 61 | 73 69 65 72 20 74 6f 20 |it is.ea|sier to |
|000004a0| 65 73 74 69 6d 61 74 65 | 20 69 74 73 20 64 65 67 |estimate| its deg|
|000004b0| 72 65 65 73 20 6f 66 20 | 66 72 65 65 64 6f 6d 20 |rees of |freedom |
|000004c0| 77 68 65 6e 20 74 68 65 | 72 65 20 61 72 65 20 75 |when the|re are u|
|000004d0| 6e 65 71 75 61 6c 20 6e | 75 6d 62 65 72 73 20 6f |nequal n|umbers o|
|000004e0| 66 20 64 61 74 61 0d 70 | 6f 69 6e 74 73 20 61 74 |f data.p|oints at|
|000004f0| 20 65 61 63 68 20 63 6f | 6e 74 72 61 73 74 2e 20 | each co|ntrast. |
|00000500| 28 48 6f 77 65 76 65 72 | 2c 20 74 68 69 73 20 65 |(However|, this e|
|00000510| 73 74 69 6d 61 74 65 20 | 69 73 20 73 65 61 74 2d |stimate |is seat-|
|00000520| 6f 66 2d 6d 79 2d 70 61 | 6e 74 73 2e 29 20 46 69 |of-my-pa|nts.) Fi|
|00000530| 6e 61 6c 6c 79 2c 0d 74 | 68 69 73 20 70 72 6f 67 |nally,.t|his prog|
|00000540| 72 61 6d 20 61 63 74 75 | 61 6c 6c 79 20 63 6f 6d |ram actu|ally com|
|00000550| 70 75 74 65 73 20 74 68 | 65 20 73 69 67 6e 69 66 |putes th|e signif|
|00000560| 69 63 61 6e 63 65 20 66 | 6f 72 20 79 6f 75 2c 20 |icance f|or you, |
|00000570| 66 72 6f 6d 20 74 68 65 | 20 63 68 69 20 73 71 75 |from the| chi squ|
|00000580| 61 72 65 0d 76 61 6c 75 | 65 20 61 6e 64 20 74 68 |are.valu|e and th|
|00000590| 65 20 65 73 74 69 6d 61 | 74 65 20 6f 66 20 69 74 |e estima|te of it|
|000005a0| 73 20 64 65 67 72 65 65 | 73 20 6f 66 20 66 72 65 |s degree|s of fre|
|000005b0| 65 64 6f 6d 2e 20 54 68 | 69 73 20 73 69 67 6e 69 |edom. Th|is signi|
|000005c0| 66 69 63 61 6e 63 65 20 | 76 61 6c 75 65 20 69 73 |ficance |value is|
|000005d0| 20 6f 66 0d 73 6f 6d 65 | 20 75 73 65 20 69 6e 20 | of.some| use in |
|000005e0| 63 68 6f 6f 73 69 6e 67 | 20 61 20 73 6d 61 6c 6c |choosing| a small|
|000005f0| 20 66 72 61 63 74 69 6f | 6e 20 6f 66 20 79 6f 75 | fractio|n of you|
|00000600| 72 20 66 69 74 73 20 74 | 6f 20 64 69 73 63 61 72 |r fits t|o discar|
|00000610| 64 20 28 65 2e 67 2e 20 | 69 66 0d 73 69 67 6e 69 |d (e.g. |if.signi|
|00000620| 66 69 63 61 6e 63 65 20 | 69 73 20 6c 65 73 73 20 |ficance |is less |
|00000630| 74 68 61 6e 20 30 2e 30 | 35 29 2e 20 54 68 69 73 |than 0.0|5). This|
|00000640| 20 73 69 67 6e 69 66 69 | 63 61 6e 63 65 20 69 73 | signifi|cance is|
|00000650| 20 6d 69 73 6c 65 61 64 | 69 6e 67 6c 79 20 6c 6f | mislead|ingly lo|
|00000660| 77 20 77 68 65 6e 20 62 | 6f 74 68 0d 68 79 70 6f |w when b|oth.hypo|
|00000670| 74 68 65 73 65 73 20 68 | 61 76 65 20 6e 65 61 72 |theses h|ave near|
|00000680| 6c 79 20 74 68 65 20 73 | 61 6d 65 20 6e 75 6d 62 |ly the s|ame numb|
|00000690| 65 72 20 6f 66 20 64 65 | 67 72 65 65 73 20 6f 66 |er of de|grees of|
|000006a0| 20 66 72 65 65 64 6f 6d | 20 28 69 2e 65 2e 20 79 | freedom| (i.e. y|
|000006b0| 6f 75 20 6f 6e 6c 79 20 | 68 61 76 65 0d 61 20 66 |ou only |have.a f|
|000006c0| 65 77 20 63 6f 6e 74 72 | 61 73 74 73 29 2e 20 4c |ew contr|asts). L|
|000006d0| 6f 6f 6b 69 6e 67 20 61 | 74 20 74 68 65 20 73 69 |ooking a|t the si|
|000006e0| 67 6e 69 66 69 63 61 6e | 63 65 20 69 73 20 68 65 |gnifican|ce is he|
|000006f0| 6c 70 66 75 6c 2c 20 62 | 75 74 20 6e 6f 74 20 61 |lpful, b|ut not a|
|00000700| 20 73 75 62 73 74 69 74 | 75 74 65 0d 66 6f 72 20 | substit|ute.for |
|00000710| 74 68 69 6e 6b 69 6e 67 | 20 61 62 6f 75 74 20 77 |thinking| about w|
|00000720| 68 65 74 68 65 72 20 79 | 6f 75 72 20 72 65 73 75 |hether y|our resu|
|00000730| 6c 74 73 20 61 72 65 20 | 72 65 61 6c 6c 79 20 72 |lts are |really r|
|00000740| 65 61 73 6f 6e 61 62 6c | 65 2e 0d 0d 4e 6f 74 65 |easonabl|e...Note|
|00000750| 20 74 68 61 74 20 51 75 | 69 63 6b 33 2e 63 20 69 | that Qu|ick3.c i|
|00000760| 73 20 6a 75 73 74 20 61 | 20 66 72 6f 6e 74 20 65 |s just a| front e|
|00000770| 6e 64 2c 20 64 65 61 6c | 69 6e 67 20 77 69 74 68 |nd, deal|ing with|
|00000780| 20 74 68 65 20 75 73 65 | 72 20 69 6e 74 65 72 66 | the use|r interf|
|00000790| 61 63 65 20 61 6e 64 0d | 72 65 61 64 69 6e 67 20 |ace and.|reading |
|000007a0| 61 6e 64 20 77 72 69 74 | 69 6e 67 20 66 69 6c 65 |and writ|ing file|
|000007b0| 73 2e 20 41 6c 6c 20 74 | 68 65 20 77 6f 72 6b 20 |s. All t|he work |
|000007c0| 69 73 20 64 6f 6e 65 20 | 62 79 20 6f 6e 65 20 63 |is done |by one c|
|000007d0| 61 6c 6c 20 74 6f 0d 50 | 73 79 63 68 6f 6d 65 74 |all to.P|sychomet|
|000007e0| 72 69 63 46 69 74 28 29 | 2e 20 49 6e 20 6d 61 6e |ricFit()|. In man|
|000007f0| 79 20 63 61 73 65 73 20 | 69 74 20 77 69 6c 6c 20 |y cases |it will |
|00000800| 62 65 20 63 6f 6e 76 65 | 6e 69 65 6e 74 20 74 6f |be conve|nient to|
|00000810| 20 63 61 6c 6c 20 74 68 | 61 74 20 72 6f 75 74 69 | call th|at routi|
|00000820| 6e 65 0d 64 69 72 65 63 | 74 6c 79 20 66 72 6f 6d |ne.direc|tly from|
|00000830| 20 79 6f 75 72 20 70 72 | 6f 67 72 61 6d 20 74 68 | your pr|ogram th|
|00000840| 61 74 20 63 6f 6c 6c 65 | 63 74 73 20 28 6f 72 20 |at colle|cts (or |
|00000850| 67 65 6e 65 72 61 74 65 | 73 29 20 74 68 65 20 64 |generate|s) the d|
|00000860| 61 74 61 2c 20 72 61 74 | 68 65 72 20 74 68 61 6e |ata, rat|her than|
|00000870| 0d 73 61 76 69 6e 67 20 | 74 68 65 20 64 61 74 61 |.saving |the data|
|00000880| 20 69 6e 20 61 20 66 69 | 6c 65 20 66 6f 72 20 73 | in a fi|le for s|
|00000890| 75 62 73 65 71 75 65 6e | 74 20 61 6e 61 6c 79 73 |ubsequen|t analys|
|000008a0| 69 73 20 62 79 20 51 75 | 69 63 6b 33 2e 63 2e 20 |is by Qu|ick3.c. |
|000008b0| 49 66 20 79 6f 75 20 77 | 61 6e 74 20 74 6f 0d 75 |If you w|ant to.u|
|000008c0| 73 65 20 61 20 70 73 79 | 63 68 6f 6d 65 74 72 69 |se a psy|chometri|
|000008d0| 63 20 6d 6f 64 65 6c 20 | 6f 74 68 65 72 20 74 68 |c model |other th|
|000008e0| 61 6e 20 74 68 65 20 57 | 65 69 62 75 6c 6c 20 66 |an the W|eibull f|
|000008f0| 75 6e 63 74 69 6f 6e 20 | 61 6c 6c 20 79 6f 75 20 |unction |all you |
|00000900| 6e 65 65 64 20 74 6f 20 | 64 6f 20 69 73 0d 77 72 |need to |do is.wr|
|00000910| 69 74 65 20 61 20 73 6d | 61 6c 6c 20 66 75 6e 63 |ite a sm|all func|
|00000920| 74 69 6f 6e 20 74 6f 20 | 69 6d 70 6c 65 6d 65 6e |tion to |implemen|
|00000930| 74 20 69 74 2c 20 62 61 | 73 65 64 20 6f 6e 20 57 |t it, ba|sed on W|
|00000940| 65 69 62 75 6c 6c 2e 63 | 2e 20 49 74 20 73 68 6f |eibull.c|. It sho|
|00000950| 75 6c 64 20 62 65 20 65 | 61 73 79 2e 0d 50 73 79 |uld be e|asy..Psy|
|00000960| 63 68 6f 6d 65 74 72 69 | 63 46 69 74 28 29 20 75 |chometri|cFit() u|
|00000970| 73 65 73 20 77 68 61 74 | 65 76 65 72 20 70 73 79 |ses what|ever psy|
|00000980| 63 68 6f 6d 65 74 72 69 | 63 20 66 75 6e 63 74 69 |chometri|c functi|
|00000990| 6f 6e 20 69 73 20 73 75 | 70 70 6c 69 65 64 20 69 |on is su|pplied i|
|000009a0| 6e 20 74 68 65 20 63 61 | 6c 6c 2e 0d 0d 51 75 69 |n the ca|ll...Qui|
|000009b0| 63 6b 33 20 72 65 61 64 | 73 20 69 6e 20 79 6f 75 |ck3 read|s in you|
|000009c0| 72 20 64 61 74 61 20 66 | 72 6f 6d 20 61 20 74 65 |r data f|rom a te|
|000009d0| 78 74 20 66 69 6c 65 20 | 61 6e 64 20 61 6e 61 6c |xt file |and anal|
|000009e0| 79 7a 65 73 20 74 68 65 | 6d 2e 20 54 68 65 20 72 |yzes the|m. The r|
|000009f0| 65 73 75 6c 74 73 20 61 | 72 65 0d 73 68 6f 77 6e |esults a|re.shown|
|00000a00| 20 6f 6e 20 74 68 65 20 | 73 63 72 65 65 6e 2c 20 | on the |screen, |
|00000a10| 61 6e 64 20 61 72 65 20 | 73 61 76 65 64 20 69 6e |and are |saved in|
|00000a20| 20 74 77 6f 20 6b 69 6e | 64 73 20 6f 66 20 6f 75 | two kin|ds of ou|
|00000a30| 74 70 75 74 20 66 69 6c | 65 2e 20 54 68 65 20 2a |tput fil|e. The *|
|00000a40| 2e 66 69 74 20 66 69 6c | 65 20 69 73 0d 69 6e 20 |.fit fil|e is.in |
|00000a50| 45 78 63 65 6c 20 66 6f | 72 6d 61 74 20 61 6e 64 |Excel fo|rmat and|
|00000a60| 20 68 61 73 20 6a 75 73 | 74 20 61 20 6d 69 6e 69 | has jus|t a mini|
|00000a70| 6d 61 6c 20 6f 6e 65 2d | 6c 69 6e 65 20 73 75 6d |mal one-|line sum|
|00000a80| 6d 61 72 79 20 66 6f 72 | 20 65 61 63 68 20 63 6f |mary for| each co|
|00000a90| 6e 64 69 74 69 6f 6e 2c | 0d 67 69 76 69 6e 67 20 |ndition,|.giving |
|00000aa0| 74 68 65 20 70 61 72 61 | 6d 65 74 65 72 73 20 61 |the para|meters a|
|00000ab0| 6e 64 20 67 6f 6f 64 6e | 65 73 73 20 6f 66 20 66 |nd goodn|ess of f|
|00000ac0| 69 74 2e 20 54 68 65 20 | 2a 2e 70 6c 6f 74 20 66 |it. The |*.plot f|
|00000ad0| 69 6c 65 20 69 73 20 69 | 6e 20 74 65 78 74 20 66 |ile is i|n text f|
|00000ae0| 6f 72 6d 61 74 20 61 6e | 64 0d 69 73 20 73 75 69 |ormat an|d.is sui|
|00000af0| 74 61 62 6c 65 20 66 6f | 72 20 70 6c 6f 74 74 69 |table fo|r plotti|
|00000b00| 6e 67 20 28 65 2e 67 2e | 20 62 79 20 43 72 69 63 |ng (e.g.| by Cric|
|00000b10| 6b 65 74 47 72 61 70 68 | 29 20 6f 66 20 74 68 65 |ketGraph|) of the|
|00000b20| 20 70 73 79 63 68 6f 6d | 65 74 72 69 63 20 64 61 | psychom|etric da|
|00000b30| 74 61 20 61 6c 6f 6e 67 | 0d 77 69 74 68 20 74 68 |ta along|.with th|
|00000b40| 65 20 57 65 69 62 75 6c | 6c 20 61 6e 64 20 4d 6f |e Weibul|l and Mo|
|00000b50| 6e 6f 74 6f 6e 69 63 20 | 66 69 74 73 2e 20 46 6f |notonic |fits. Fo|
|00000b60| 72 20 4d 61 63 69 6e 74 | 6f 73 68 20 75 73 65 72 |r Macint|osh user|
|00000b70| 73 2c 20 74 68 65 20 6f | 75 74 70 75 74 20 66 69 |s, the o|utput fi|
|00000b80| 6c 65 73 20 61 72 65 0d | 54 45 58 54 20 66 69 6c |les are.|TEXT fil|
|00000b90| 65 73 2c 20 62 75 74 20 | 68 61 76 65 20 74 68 65 |es, but |have the|
|00000ba0| 20 61 70 70 72 6f 70 72 | 69 61 74 65 20 63 72 65 | appropr|iate cre|
|00000bb0| 61 74 6f 72 20 73 6f 20 | 74 68 61 74 20 64 6f 75 |ator so |that dou|
|00000bc0| 62 6c 65 2d 63 6c 69 63 | 6b 69 6e 67 20 74 68 65 |ble-clic|king the|
|00000bd0| 6d 20 6f 70 65 6e 73 0d | 74 68 65 20 64 61 74 61 |m opens.|the data|
|00000be0| 20 66 69 6c 65 20 69 6e | 20 74 68 65 20 61 70 70 | file in| the app|
|00000bf0| 72 6f 70 72 69 61 74 65 | 20 61 70 70 6c 69 63 61 |ropriate| applica|
|00000c00| 74 69 6f 6e 2c 20 65 69 | 74 68 65 72 20 45 78 63 |tion, ei|ther Exc|
|00000c10| 65 6c 20 6f 72 20 43 72 | 69 63 6b 65 74 20 47 72 |el or Cr|icket Gr|
|00000c20| 61 70 68 2e 0d 46 6f 72 | 20 6d 61 78 69 6d 75 6d |aph..For| maximum|
|00000c30| 20 63 6f 6e 76 65 6e 69 | 65 6e 63 65 2c 20 63 68 | conveni|ence, ch|
|00000c40| 61 6e 67 65 20 74 68 65 | 20 64 65 66 69 6e 69 74 |ange the| definit|
|00000c50| 69 6f 6e 20 6f 66 20 50 | 4c 4f 54 5f 43 52 45 41 |ion of P|LOT_CREA|
|00000c60| 54 4f 52 20 74 6f 20 6d | 61 74 63 68 20 74 68 61 |TOR to m|atch tha|
|00000c70| 74 20 6f 66 20 0d 79 6f | 75 72 20 66 61 76 6f 72 |t of .yo|ur favor|
|00000c80| 69 74 65 20 67 72 61 70 | 68 69 6e 67 20 70 72 6f |ite grap|hing pro|
|00000c90| 67 72 61 6d 2e 0d 0d 57 | 65 20 6e 6f 20 6c 6f 6e |gram...W|e no lon|
|00000ca0| 67 65 72 20 75 73 65 20 | 43 72 69 63 6b 65 74 47 |ger use |CricketG|
|00000cb0| 72 61 70 68 2c 20 62 75 | 74 2c 20 69 6e 20 63 61 |raph, bu|t, in ca|
|00000cc0| 73 65 20 79 6f 75 20 64 | 6f 2c 20 77 65 27 76 65 |se you d|o, we've|
|00000cd0| 20 69 6e 63 6c 75 64 65 | 64 20 43 72 69 63 6b 65 | include|d Cricke|
|00000ce0| 74 47 72 61 70 68 0d 66 | 6f 72 6d 61 74 20 66 69 |tGraph.f|ormat fi|
|00000cf0| 6c 65 73 20 63 61 6c 6c | 65 64 20 22 43 72 69 63 |les call|ed "Cric|
|00000d00| 6b 65 74 47 72 61 70 68 | 20 51 75 69 63 6b 33 22 |ketGraph| Quick3"|
|00000d10| 20 28 66 6f 72 20 74 68 | 65 20 6f 72 69 67 69 6e | (for th|e origin|
|00000d20| 61 6c 20 43 72 69 63 6b | 65 74 47 72 61 70 68 29 |al Crick|etGraph)|
|00000d30| 20 61 6e 64 0d 22 43 41 | 2d 43 72 69 63 6b 65 74 | and."CA|-Cricket|
|00000d40| 47 72 61 70 68 49 49 49 | 20 51 75 69 63 6b 33 22 |GraphIII| Quick3"|
|00000d50| 20 28 66 6f 72 20 74 68 | 65 20 6e 65 77 20 43 72 | (for th|e new Cr|
|00000d60| 69 63 6b 65 74 47 72 61 | 70 68 49 49 49 29 2e 20 |icketGra|phIII). |
|00000d70| 50 75 74 20 74 68 65 20 | 61 70 70 72 6f 70 72 69 |Put the |appropri|
|00000d80| 61 74 65 0d 66 69 6c 65 | 20 69 6e 20 74 68 65 20 |ate.file| in the |
|00000d90| 73 61 6d 65 20 66 6f 6c | 64 65 72 20 61 73 20 74 |same fol|der as t|
|00000da0| 68 65 20 43 72 69 63 6b | 65 74 47 72 61 70 68 20 |he Crick|etGraph |
|00000db0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2e 20 57 68 65 |applicat|ion. Whe|
|00000dc0| 6e 20 43 72 69 63 6b 65 | 74 47 72 61 70 68 0d 73 |n Cricke|tGraph.s|
|00000dd0| 74 61 72 74 73 20 75 70 | 20 69 74 20 77 69 6c 6c |tarts up| it will|
|00000de0| 20 72 65 61 64 20 69 6e | 20 74 68 65 20 66 6f 72 | read in| the for|
|00000df0| 6d 61 74 20 66 69 6c 65 | 2c 20 61 6e 64 20 6c 61 |mat file|, and la|
|00000e00| 74 65 72 20 79 6f 75 27 | 6c 6c 20 62 65 20 61 62 |ter you'|ll be ab|
|00000e10| 6c 65 20 74 6f 20 73 65 | 6c 65 63 74 0d 74 68 61 |le to se|lect.tha|
|00000e20| 74 20 66 6f 72 6d 61 74 | 20 66 72 6f 6d 20 43 72 |t format| from Cr|
|00000e30| 69 63 6b 65 74 47 72 61 | 70 68 27 73 20 46 6f 72 |icketGra|ph's For|
|00000e40| 6d 61 74 20 6d 65 6e 75 | 20 77 68 65 6e 20 79 6f |mat menu| when yo|
|00000e50| 75 20 70 6c 6f 74 20 79 | 6f 75 72 20 64 61 74 61 |u plot y|our data|
|00000e60| 2e 0d 0d 51 75 69 63 6b | 33 27 73 20 69 6e 70 75 |...Quick|3's inpu|
|00000e70| 74 20 66 69 6c 65 20 66 | 6f 72 6d 61 74 20 69 73 |t file f|ormat is|
|00000e80| 20 73 69 6d 70 6c 65 20 | 61 6e 64 20 66 6c 65 78 | simple |and flex|
|00000e90| 69 62 6c 65 2e 20 49 74 | 20 69 73 20 61 20 74 65 |ible. It| is a te|
|00000ea0| 78 74 20 66 69 6c 65 2e | 20 4c 69 6e 65 73 0d 62 |xt file.| Lines.b|
|00000eb0| 65 67 69 6e 6e 69 6e 67 | 20 77 69 74 68 20 22 23 |eginning| with "#|
|00000ec0| 22 20 61 72 65 20 74 72 | 65 61 74 65 64 20 61 73 |" are tr|eated as|
|00000ed0| 20 63 6f 6d 6d 65 6e 74 | 73 2e 20 43 6f 6d 6d 65 | comment|s. Comme|
|00000ee0| 6e 74 73 20 61 72 65 20 | 65 69 74 68 65 72 20 63 |nts are |either c|
|00000ef0| 6f 70 69 65 64 20 64 69 | 72 65 63 74 6c 79 0d 74 |opied di|rectly.t|
|00000f00| 6f 20 74 68 65 20 2e 66 | 69 74 20 66 69 6c 65 2c |o the .f|it file,|
|00000f10| 20 6f 72 20 75 73 65 64 | 20 61 73 20 61 20 6e 61 | or used| as a na|
|00000f20| 6d 65 20 66 6f 72 20 74 | 68 65 20 6e 65 78 74 20 |me for t|he next |
|00000f30| 22 63 6f 6e 64 69 74 69 | 6f 6e 22 20 28 69 2e 65 |"conditi|on" (i.e|
|00000f40| 2e 20 62 6c 6f 63 6b 20 | 6f 66 0d 64 61 74 61 29 |. block |of.data)|
|00000f50| 2e 20 54 68 65 20 66 69 | 6c 65 20 6d 75 73 74 20 |. The fi|le must |
|00000f60| 62 65 67 69 6e 20 77 69 | 74 68 20 61 74 20 6c 65 |begin wi|th at le|
|00000f70| 61 73 74 20 6f 6e 65 20 | 63 6f 6d 6d 65 6e 74 20 |ast one |comment |
|00000f80| 6c 69 6e 65 2e 20 54 68 | 65 20 6c 61 73 74 20 6f |line. Th|e last o|
|00000f90| 66 20 73 65 76 65 72 61 | 6c 0d 63 6f 6e 74 69 67 |f severa|l.contig|
|00000fa0| 75 6f 75 73 20 63 6f 6d | 6d 65 6e 74 20 6c 69 6e |uous com|ment lin|
|00000fb0| 65 73 20 77 69 6c 6c 20 | 62 65 20 74 61 6b 65 6e |es will |be taken|
|00000fc0| 20 74 6f 20 62 65 20 74 | 68 65 20 6e 61 6d 65 20 | to be t|he name |
|00000fd0| 66 6f 72 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |for the |followin|
|00000fe0| 67 0d 63 6f 6e 64 69 74 | 69 6f 6e 2e 20 41 6c 6c |g.condit|ion. All|
|00000ff0| 20 74 68 65 20 6e 6f 6e | 2d 63 6f 6d 6d 65 6e 74 | the non|-comment|
|00001000| 20 6c 69 6e 65 73 20 75 | 6e 74 69 6c 20 74 68 65 | lines u|ntil the|
|00001010| 20 6e 65 78 74 20 63 6f | 6d 6d 65 6e 74 20 77 69 | next co|mment wi|
|00001020| 6c 6c 20 62 65 20 69 6e | 74 65 72 70 72 65 74 65 |ll be in|terprete|
|00001030| 64 0d 61 73 20 74 68 65 | 20 64 61 74 61 20 66 6f |d.as the| data fo|
|00001040| 72 20 74 68 61 74 20 63 | 6f 6e 64 69 74 69 6f 6e |r that c|ondition|
|00001050| 2e 0d 0d 41 6e 20 65 78 | 70 65 72 69 6d 65 6e 74 |...An ex|periment|
|00001060| 20 75 73 75 61 6c 6c 79 | 20 63 6f 6e 73 69 73 74 | usually| consist|
|00001070| 73 20 6f 66 20 73 65 76 | 65 72 61 6c 20 63 6f 6e |s of sev|eral con|
|00001080| 64 69 74 69 6f 6e 73 2c | 20 6f 72 20 62 6c 6f 63 |ditions,| or bloc|
|00001090| 6b 73 20 6f 66 20 74 72 | 69 61 6c 73 2e 0d 57 69 |ks of tr|ials..Wi|
|000010a0| 74 68 69 6e 20 74 68 65 | 20 63 6f 6e 64 69 74 69 |thin the| conditi|
|000010b0| 6f 6e 20 74 68 65 20 6f | 62 73 65 72 76 65 72 20 |on the o|bserver |
|000010c0| 77 69 6c 6c 20 62 65 20 | 74 65 73 74 65 64 20 72 |will be |tested r|
|000010d0| 65 70 65 61 74 65 64 6c | 79 20 61 74 20 76 61 72 |epeatedl|y at var|
|000010e0| 69 6f 75 73 0d 63 6f 6e | 74 72 61 73 74 73 2e 20 |ious.con|trasts. |
|000010f0| 54 68 65 20 72 65 73 75 | 6c 74 73 20 63 6f 6e 73 |The resu|lts cons|
|00001100| 69 73 74 20 6f 66 20 74 | 68 65 20 6e 75 6d 62 65 |ist of t|he numbe|
|00001110| 72 20 6f 66 20 74 72 69 | 61 6c 73 20 63 6f 72 72 |r of tri|als corr|
|00001120| 65 63 74 20 61 74 20 65 | 61 63 68 20 63 6f 6e 74 |ect at e|ach cont|
|00001130| 72 61 73 74 2e 0d 54 68 | 65 20 72 65 73 75 6c 74 |rast..Th|e result|
|00001140| 73 20 6d 61 79 20 62 65 | 20 64 65 73 63 72 69 62 |s may be| describ|
|00001150| 65 64 20 62 79 20 61 20 | 73 65 74 20 6f 66 20 22 |ed by a |set of "|
|00001160| 63 6f 6e 74 72 61 73 74 | 20 72 65 63 6f 72 64 73 |contrast| records|
|00001170| 22 2e 20 45 61 63 68 20 | 63 6f 6e 74 72 61 73 74 |". Each |contrast|
|00001180| 0d 72 65 63 6f 72 64 20 | 63 6f 6e 73 69 73 74 73 |.record |consists|
|00001190| 20 6f 66 20 61 20 63 6f | 6e 74 72 61 73 74 20 28 | of a co|ntrast (|
|000011a0| 65 2e 67 2e 20 30 2e 30 | 31 32 29 2c 20 74 68 65 |e.g. 0.0|12), the|
|000011b0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 74 72 69 61 6c | number |of trial|
|000011c0| 73 20 61 74 20 74 68 61 | 74 0d 63 6f 6e 74 72 61 |s at tha|t.contra|
|000011d0| 73 74 20 28 65 2e 67 2e | 20 31 20 6f 72 20 31 30 |st (e.g.| 1 or 10|
|000011e0| 30 29 2c 20 61 6e 64 20 | 74 68 65 20 6e 75 6d 62 |0), and |the numb|
|000011f0| 65 72 20 6f 66 20 63 6f | 72 72 65 63 74 20 72 65 |er of co|rrect re|
|00001200| 73 70 6f 6e 73 65 73 20 | 28 65 2e 67 2e 20 30 20 |sponses |(e.g. 0 |
|00001210| 6f 72 20 37 39 29 2e 0d | 51 75 69 63 6b 33 20 65 |or 79)..|Quick3 e|
|00001220| 78 70 65 63 74 73 20 61 | 20 63 6f 6e 74 72 61 73 |xpects a| contras|
|00001230| 74 20 72 65 63 6f 72 64 | 20 74 6f 20 6c 6f 6f 6b |t record| to look|
|00001240| 20 6c 69 6b 65 20 74 68 | 69 73 3a 0d 30 2e 30 31 | like th|is:.0.01|
|00001250| 32 20 31 30 30 20 37 39 | 0d 54 68 65 20 74 68 72 |2 100 79|.The thr|
|00001260| 65 65 20 6e 75 6d 62 65 | 72 73 20 61 72 65 20 61 |ee numbe|rs are a|
|00001270| 6c 6c 20 6f 6e 20 6f 6e | 65 20 6c 69 6e 65 2c 20 |ll on on|e line, |
|00001280| 61 6e 64 20 73 65 70 61 | 72 61 74 65 64 20 62 79 |and sepa|rated by|
|00001290| 20 77 68 69 74 65 20 73 | 70 61 63 65 2c 20 73 6f | white s|pace, so|
|000012a0| 20 73 73 63 61 6e 66 0d | 63 61 6e 20 70 61 72 73 | sscanf.|can pars|
|000012b0| 65 20 74 68 65 6d 2e 20 | 41 6e 79 74 68 69 6e 67 |e them. |Anything|
|000012c0| 20 6f 6e 20 74 68 65 20 | 6c 69 6e 65 20 61 66 74 | on the |line aft|
|000012d0| 65 72 20 74 68 65 20 74 | 68 69 72 64 20 6e 75 6d |er the t|hird num|
|000012e0| 62 65 72 20 69 73 20 69 | 67 6e 6f 72 65 64 2e 20 |ber is i|gnored. |
|000012f0| 41 6c 6c 0d 63 6f 6e 74 | 72 61 73 74 20 72 65 63 |All.cont|rast rec|
|00001300| 6f 72 64 73 20 75 6e 74 | 69 6c 20 74 68 65 20 6e |ords unt|il the n|
|00001310| 65 78 74 20 63 6f 6d 6d | 65 6e 74 20 28 6c 69 6e |ext comm|ent (lin|
|00001320| 65 20 62 65 67 69 6e 6e | 69 6e 67 20 77 69 74 68 |e beginn|ing with|
|00001330| 20 22 23 22 29 20 6f 72 | 20 74 68 65 20 65 6e 64 | "#") or| the end|
|00001340| 20 6f 66 0d 66 69 6c 65 | 20 61 72 65 20 61 73 73 | of.file| are ass|
|00001350| 75 6d 65 64 20 74 6f 20 | 62 65 20 66 72 6f 6d 20 |umed to |be from |
|00001360| 74 68 65 20 73 61 6d 65 | 20 63 6f 6e 64 69 74 69 |the same| conditi|
|00001370| 6f 6e 20 61 6e 64 20 61 | 72 65 20 61 6e 61 6c 79 |on and a|re analy|
|00001380| 7a 65 64 20 74 6f 67 65 | 74 68 65 72 2e 20 54 68 |zed toge|ther. Th|
|00001390| 65 0d 63 6f 6e 74 72 61 | 73 74 20 72 65 63 6f 72 |e.contra|st recor|
|000013a0| 64 73 20 6d 61 79 20 62 | 65 20 69 6e 20 61 6e 79 |ds may b|e in any|
|000013b0| 20 6f 72 64 65 72 2e 20 | 54 68 65 20 72 65 63 6f | order. |The reco|
|000013c0| 72 64 73 20 77 69 6c 6c | 20 62 65 20 73 6f 72 74 |rds will| be sort|
|000013d0| 65 64 20 69 6e 74 6f 20 | 6f 72 64 65 72 20 6f 66 |ed into |order of|
|000013e0| 0d 61 73 63 65 6e 64 69 | 6e 67 20 63 6f 6e 74 72 |.ascendi|ng contr|
|000013f0| 61 73 74 2e 20 59 6f 75 | 20 6d 61 79 20 68 61 76 |ast. You| may hav|
|00001400| 65 20 61 6e 79 20 6e 75 | 6d 62 65 72 20 6f 66 20 |e any nu|mber of |
|00001410| 74 72 69 61 6c 73 20 61 | 74 20 65 61 63 68 20 63 |trials a|t each c|
|00001420| 6f 6e 74 72 61 73 74 2c | 20 75 70 20 74 6f 0d 61 |ontrast,| up to.a|
|00001430| 62 6f 75 74 20 74 77 6f | 20 62 69 6c 6c 69 6f 6e |bout two| billion|
|00001440| 20 28 69 2e 65 2e 20 4c | 4f 4e 47 5f 4d 41 58 20 | (i.e. L|ONG_MAX |
|00001450| 69 6e 20 6c 69 6d 69 74 | 73 2e 68 29 2e 20 49 74 |in limit|s.h). It|
|00001460| 27 73 20 6f 6b 61 79 20 | 74 6f 20 68 61 76 65 20 |'s okay |to have |
|00001470| 6d 75 6c 74 69 70 6c 65 | 0d 72 65 63 6f 72 64 73 |multiple|.records|
|00001480| 20 77 69 74 68 20 65 71 | 75 61 6c 20 63 6f 6e 74 | with eq|ual cont|
|00001490| 72 61 73 74 73 2e 20 54 | 68 65 20 64 61 74 61 20 |rasts. T|he data |
|000014a0| 77 69 6c 6c 20 62 65 20 | 6d 65 72 67 65 64 2c 20 |will be |merged, |
|000014b0| 61 64 64 69 6e 67 20 75 | 70 20 74 68 65 20 74 72 |adding u|p the tr|
|000014c0| 69 61 6c 73 20 61 74 0d | 74 68 61 74 20 63 6f 6e |ials at.|that con|
|000014d0| 74 72 61 73 74 2e 20 59 | 6f 75 20 63 61 6e 20 65 |trast. Y|ou can e|
|000014e0| 76 65 6e 20 62 65 20 72 | 65 61 6c 6c 79 20 6c 61 |ven be r|eally la|
|000014f0| 7a 79 20 61 6e 64 20 6a | 75 73 74 20 77 72 69 74 |zy and j|ust writ|
|00001500| 65 20 6f 75 74 20 65 61 | 63 68 20 74 72 69 61 6c |e out ea|ch trial|
|00001510| 20 61 73 20 61 0d 73 65 | 70 61 72 61 74 65 20 63 | as a.se|parate c|
|00001520| 6f 6e 74 72 61 73 74 20 | 72 65 63 6f 72 64 2c 20 |ontrast |record, |
|00001530| 69 6e 20 77 68 61 74 65 | 76 65 72 20 6f 72 64 65 |in whate|ver orde|
|00001540| 72 2c 20 77 69 74 68 6f | 75 74 20 6b 65 65 70 69 |r, witho|ut keepi|
|00001550| 6e 67 20 74 72 61 63 6b | 20 6f 66 20 68 6f 77 20 |ng track| of how |
|00001560| 6d 61 6e 79 2c 0d 65 74 | 63 2e 0d 0d 59 6f 75 20 |many,.et|c...You |
|00001570| 6d 61 79 20 61 64 64 20 | 72 65 63 6f 72 64 73 20 |may add |records |
|00001580| 77 69 74 68 20 7a 65 72 | 6f 20 74 72 69 61 6c 73 |with zer|o trials|
|00001590| 20 28 61 6e 64 20 7a 65 | 72 6f 20 63 6f 72 72 65 | (and ze|ro corre|
|000015a0| 63 74 29 20 73 6f 20 61 | 73 20 74 6f 20 68 61 76 |ct) so a|s to hav|
|000015b0| 65 20 66 69 74 74 65 64 | 0d 76 61 6c 75 65 73 20 |e fitted|.values |
|000015c0| 63 6f 6d 70 75 74 65 64 | 20 61 74 20 74 68 6f 73 |computed| at thos|
|000015d0| 65 20 63 6f 6e 74 72 61 | 73 74 73 20 69 6e 20 74 |e contra|sts in t|
|000015e0| 68 65 20 2e 70 6c 6f 74 | 20 66 69 6c 65 2e 0d 0d |he .plot| file...|
|000015f0| 48 65 72 65 27 73 20 61 | 6e 20 65 78 61 6d 70 6c |Here's a|n exampl|
|00001600| 65 20 6f 66 20 61 20 64 | 61 74 61 20 66 69 6c 65 |e of a d|ata file|
|00001610| 2c 20 73 75 69 74 61 62 | 6c 65 20 66 6f 72 20 61 |, suitab|le for a|
|00001620| 6e 61 6c 79 73 69 73 20 | 62 79 20 51 75 69 63 6b |nalysis |by Quick|
|00001630| 33 3a 0d 23 54 68 69 73 | 20 69 73 20 61 20 73 61 |3:.#This| is a sa|
|00001640| 6d 70 6c 65 20 66 69 6c | 65 2e 20 0d 23 54 68 65 |mple fil|e. .#The|
|00001650| 20 66 69 72 73 74 20 63 | 6f 6e 64 69 74 69 6f 6e | first c|ondition|
|00001660| 20 69 73 20 63 61 6c 6c | 65 64 20 22 6d 6f 6e 6f | is call|ed "mono|
|00001670| 63 75 6c 61 72 22 20 61 | 6e 64 20 68 61 73 20 36 |cular" a|nd has 6|
|00001680| 30 20 74 72 69 61 6c 73 | 20 61 74 20 36 20 63 6f |0 trials| at 6 co|
|00001690| 6e 74 72 61 73 74 73 2e | 0d 23 6d 6f 6e 6f 63 75 |ntrasts.|.#monocu|
|000016a0| 6c 61 72 0d 30 2e 31 20 | 31 30 20 34 0d 30 2e 32 |lar.0.1 |10 4.0.2|
|000016b0| 20 31 30 20 35 0d 30 2e | 33 20 31 30 20 37 0d 30 | 10 5.0.|3 10 7.0|
|000016c0| 2e 34 20 31 30 20 36 20 | 41 6e 79 74 68 69 6e 67 |.4 10 6 |Anything|
|000016d0| 20 61 66 74 65 72 20 74 | 68 65 20 73 70 65 63 69 | after t|he speci|
|000016e0| 66 69 65 64 20 64 61 74 | 61 20 69 73 20 69 67 6e |fied dat|a is ign|
|000016f0| 6f 72 65 64 2e 0d 30 2e | 35 20 31 30 20 38 0d 30 |ored..0.|5 10 8.0|
|00001700| 2e 36 20 31 30 20 31 30 | 0d 23 20 54 68 65 20 22 |.6 10 10|.# The "|
|00001710| 62 69 6e 6f 63 75 6c 61 | 72 22 20 63 6f 6e 64 69 |binocula|r" condi|
|00001720| 74 69 6f 6e 20 69 73 20 | 62 69 67 67 65 72 3a 20 |tion is |bigger: |
|00001730| 31 30 30 30 20 74 72 69 | 61 6c 73 2e 0d 23 62 69 |1000 tri|als..#bi|
|00001740| 6e 6f 63 75 6c 61 72 0d | 20 30 2e 30 35 36 20 20 |nocular.| 0.056 |
|00001750| 20 20 20 31 30 30 20 20 | 20 20 35 33 0d 20 30 2e | 100 | 53. 0.|
|00001760| 30 36 34 20 20 20 20 20 | 31 30 30 20 20 20 20 35 |064 |100 5|
|00001770| 33 0d 20 30 2e 30 37 33 | 20 20 20 20 20 31 30 30 |3. 0.073| 100|
|00001780| 20 20 20 20 36 35 0d 20 | 30 2e 30 38 33 20 20 20 | 65. |0.083 |
|00001790| 20 20 31 30 30 20 20 20 | 20 37 37 0d 20 30 2e 30 | 100 | 77. 0.0|
|000017a0| 39 34 20 20 20 20 20 31 | 30 30 20 20 20 20 38 31 |94 1|00 81|
|000017b0| 0d 20 30 2e 31 30 37 20 | 20 20 20 20 31 30 30 20 |. 0.107 | 100 |
|000017c0| 20 20 20 38 34 0d 20 30 | 2e 31 32 31 20 20 20 20 | 84. 0|.121 |
|000017d0| 20 31 30 30 20 20 20 20 | 39 36 0d 20 30 2e 31 33 | 100 |96. 0.13|
|000017e0| 38 20 20 20 20 20 31 30 | 30 20 20 20 20 39 39 0d |8 10|0 99.|
|000017f0| 20 30 2e 31 35 36 20 20 | 20 20 20 31 30 30 20 20 | 0.156 | 100 |
|00001800| 20 31 30 30 0d 20 30 2e | 31 37 38 20 20 20 20 20 | 100. 0.|178 |
|00001810| 31 30 30 20 20 20 31 30 | 30 0d 23 61 6c 6c 20 64 |100 10|0.#all d|
|00001820| 6f 6e 65 0d 0d 48 65 72 | 65 27 73 20 74 68 65 20 |one..Her|e's the |
|00001830| 72 65 73 75 6c 74 69 6e | 67 20 2e 66 69 74 20 66 |resultin|g .fit f|
|00001840| 69 6c 65 20 28 74 61 62 | 73 20 77 69 6c 6c 20 73 |ile (tab|s will s|
|00001850| 70 61 63 65 20 70 72 6f | 70 65 72 6c 79 20 69 6e |pace pro|perly in|
|00001860| 20 45 78 63 65 6c 2c 20 | 62 75 74 20 6e 6f 74 20 | Excel, |but not |
|00001870| 68 65 72 65 29 3a 0d 43 | 6f 6e 64 69 74 69 6f 6e |here):.C|ondition|
|00001880| 09 6c 6f 67 41 6c 70 68 | 61 09 62 65 74 61 09 67 |.logAlph|a.beta.g|
|00001890| 61 6d 6d 61 09 64 65 6c | 74 61 09 66 72 65 65 20 |amma.del|ta.free |
|000018a0| 70 61 72 61 6d 73 09 73 | 69 67 6e 69 66 2e 09 43 |params.s|ignif..C|
|000018b0| 68 69 20 73 71 2e 09 64 | 2e 66 2e 09 74 72 69 61 |hi sq..d|.f..tria|
|000018c0| 6c 73 09 63 6f 6e 74 72 | 61 73 74 73 0d 23 54 68 |ls.contr|asts.#Th|
|000018d0| 69 73 20 69 73 20 61 20 | 73 61 6d 70 6c 65 20 66 |is is a |sample f|
|000018e0| 69 6c 65 2e 20 0d 23 54 | 68 65 20 66 69 72 73 74 |ile. .#T|he first|
|000018f0| 20 63 6f 6e 64 69 74 69 | 6f 6e 20 69 73 20 63 61 | conditi|on is ca|
|00001900| 6c 6c 65 64 20 22 6d 6f | 6e 6f 63 75 6c 61 72 22 |lled "mo|nocular"|
|00001910| 20 61 6e 64 20 63 6f 6e | 74 61 69 6e 73 20 36 30 | and con|tains 60|
|00001920| 20 74 72 69 61 6c 73 20 | 61 74 20 36 20 63 6f 6e | trials |at 6 con|
|00001930| 74 72 61 73 74 73 2e 0d | 6d 6f 6e 6f 63 75 6c 61 |trasts..|monocula|
|00001940| 72 09 2d 30 2e 33 30 35 | 09 38 2e 32 36 39 09 30 |r.-0.305|.8.269.0|
|00001950| 2e 35 32 34 09 30 09 34 | 09 30 2e 31 38 33 09 31 |.524.0.4|.0.183.1|
|00001960| 2e 37 37 33 09 31 09 36 | 30 09 36 0d 23 20 54 68 |.773.1.6|0.6.# Th|
|00001970| 65 20 22 62 69 6e 6f 63 | 75 6c 61 72 22 20 63 6f |e "binoc|ular" co|
|00001980| 6e 64 69 74 69 6f 6e 20 | 69 73 20 62 69 67 67 65 |ndition |is bigge|
|00001990| 72 3a 20 31 30 30 30 20 | 74 72 69 61 6c 73 2e 0d |r: 1000 |trials..|
|000019a0| 62 69 6e 6f 63 75 6c 61 | 72 09 2d 31 2e 30 31 35 |binocula|r.-1.015|
|000019b0| 09 33 2e 38 31 31 09 30 | 2e 34 38 32 09 30 09 34 |.3.811.0|.482.0.4|
|000019c0| 09 30 2e 34 37 39 09 35 | 2e 35 32 31 09 36 09 31 |.0.479.5|.521.6.1|
|000019d0| 30 30 30 09 31 30 0d 23 | 61 6c 6c 20 64 6f 6e 65 |000.10.#|all done|
|000019e0| 09 09 09 09 09 09 09 09 | 09 09 0d 0d 53 4f 55 52 |........|....SOUR|
|000019f0| 43 45 53 3a 0d 0d 51 75 | 69 63 6b 33 2e 68 0d 4c |CES:..Qu|ick3.h.L|
|00001a00| 6f 67 4c 69 6b 65 6c 69 | 68 6f 6f 64 2e 63 0d 4d |ogLikeli|hood.c.M|
|00001a10| 6f 6e 6f 74 6f 6e 69 63 | 46 69 74 2e 63 0d 50 73 |onotonic|Fit.c.Ps|
|00001a20| 79 63 68 6f 6d 65 74 72 | 69 63 46 69 74 2e 63 0d |ychometr|icFit.c.|
|00001a30| 51 75 69 63 6b 33 2e 63 | 0d 53 6f 72 74 41 6e 64 |Quick3.c|.SortAnd|
|00001a40| 4d 65 72 67 65 43 6f 6e | 74 72 61 73 74 73 2e 63 |MergeCon|trasts.c|
|00001a50| 0d 57 65 69 62 75 6c 6c | 2e 63 0d 23 46 72 6f 6d |.Weibull|.c.#From|
|00001a60| 20 44 65 6e 69 73 20 50 | 65 6c 6c 69 27 73 20 56 | Denis P|elli's V|
|00001a70| 69 64 65 6f 54 6f 6f 6c | 62 6f 78 3a 0d 56 69 64 |ideoTool|box:.Vid|
|00001a80| 65 6f 54 6f 6f 6c 62 6f | 78 2e 68 0d 42 69 6e 6f |eoToolbo|x.h.Bino|
|00001a90| 6d 69 61 6c 2e 63 0d 43 | 68 69 53 71 75 61 72 65 |mial.c.C|hiSquare|
|00001aa0| 2e 63 0d 4e 6f 72 6d 61 | 6c 2e 63 0d 53 65 74 46 |.c.Norma|l.c.SetF|
|00001ab0| 69 6c 65 49 6e 66 6f 2e | 63 09 09 23 20 55 73 65 |ileInfo.|c..# Use|
|00001ac0| 64 20 6f 6e 6c 79 20 6f | 6e 20 74 68 65 20 4d 61 |d only o|n the Ma|
|00001ad0| 63 69 6e 74 6f 73 68 0d | 23 46 72 6f 6d 20 4e 75 |cintosh.|#From Nu|
|00001ae0| 6d 65 72 69 63 61 6c 20 | 52 65 63 69 70 65 73 20 |merical |Recipes |
|00001af0| 69 6e 20 43 3a 0d 6e 72 | 2e 68 0d 4e 52 55 54 49 |in C:.nr|.h.NRUTI|
|00001b00| 4c 2e 68 0d 42 52 45 4e | 54 2e 43 0d 46 31 44 49 |L.h.BREN|T.C.F1DI|
|00001b10| 4d 2e 43 0d 4c 49 4e 4d | 49 4e 2e 43 0d 4d 4e 42 |M.C.LINM|IN.C.MNB|
|00001b20| 52 41 4b 2e 43 0d 4e 52 | 55 54 49 4c 2e 43 0d 50 |RAK.C.NR|UTIL.C.P|
|00001b30| 4f 57 45 4c 4c 2e 43 0d | 0d 48 49 53 54 4f 52 59 |OWELL.C.|.HISTORY|
|00001b40| 3a 0d 34 2f 37 2f 39 30 | 09 09 64 67 70 09 77 72 |:.4/7/90|..dgp.wr|
|00001b50| 6f 74 65 20 69 74 2e 0d | 34 2f 31 30 2f 39 30 09 |ote it..|4/10/90.|
|00001b60| 09 64 67 70 09 63 68 61 | 6e 67 65 64 20 2e 66 69 |.dgp.cha|nged .fi|
|00001b70| 74 20 66 6f 72 6d 61 74 | 20 66 72 6f 6d 20 25 2e |t format| from %.|
|00001b80| 33 66 20 74 6f 20 25 2e | 34 66 2e 20 41 63 63 65 |3f to %.|4f. Acce|
|00001b90| 70 74 20 6f 6e 6c 79 20 | 70 72 69 6e 74 69 6e 67 |pt only |printing|
|00001ba0| 20 63 68 61 72 61 63 74 | 65 72 73 0d 09 09 09 09 | charact|ers.....|
|00001bb0| 69 6e 20 74 68 65 20 63 | 6f 6e 64 69 74 69 6f 6e |in the c|ondition|
|00001bc0| 20 6e 61 6d 65 2c 20 69 | 67 6e 6f 72 69 6e 67 20 | name, i|gnoring |
|00001bd0| 65 76 65 72 79 74 68 69 | 6e 67 20 61 66 74 65 72 |everythi|ng after|
|00001be0| 20 74 68 65 20 66 69 72 | 73 74 20 6e 6f 6e 2d 70 | the fir|st non-p|
|00001bf0| 72 69 6e 74 69 6e 67 0d | 09 09 09 09 63 68 61 72 |rinting.|....char|
|00001c00| 61 63 74 65 72 2e 20 54 | 68 69 73 20 64 65 61 6c |acter. T|his deal|
|00001c10| 73 20 77 69 74 68 20 74 | 68 65 20 66 61 63 74 20 |s with t|he fact |
|00001c20| 74 68 61 74 20 69 66 20 | 61 6e 20 45 78 63 65 6c |that if |an Excel|
|00001c30| 20 66 69 6c 65 20 69 73 | 20 75 73 65 64 20 66 6f | file is| used fo|
|00001c40| 72 0d 09 09 09 09 69 6e | 70 75 74 2c 20 74 68 65 |r.....in|put, the|
|00001c50| 72 65 20 61 72 65 20 6c | 6f 74 73 20 6f 66 20 74 |re are l|ots of t|
|00001c60| 72 61 69 6c 69 6e 67 20 | 74 61 62 73 20 74 68 61 |railing |tabs tha|
|00001c70| 74 20 73 68 6f 75 6c 64 | 20 62 65 20 69 67 6e 6f |t should| be igno|
|00001c80| 72 65 64 2e 20 43 68 65 | 63 6b 65 64 0d 09 09 09 |red. Che|cked....|
|00001c90| 09 74 68 61 74 20 66 69 | 6c 65 73 20 77 65 72 65 |.that fi|les were|
|00001ca0| 20 61 63 74 75 61 6c 6c | 79 20 6f 70 65 6e 20 62 | actuall|y open b|
|00001cb0| 65 66 6f 72 65 20 63 6c | 6f 73 69 6e 67 20 27 65 |efore cl|osing 'e|
|00001cc0| 6d 2e 20 4a 65 65 73 68 | 21 0d 31 30 2f 32 39 2f |m. Jeesh|!.10/29/|
|00001cd0| 39 30 09 64 67 70 09 74 | 69 64 69 65 64 20 75 70 |90.dgp.t|idied up|
|00001ce0| 20 63 6f 6d 6d 65 6e 74 | 73 2e 0d 31 2f 32 30 2f | comment|s..1/20/|
|00001cf0| 39 31 09 09 64 67 70 09 | 75 70 64 61 74 65 64 20 |91..dgp.|updated |
|00001d00| 63 61 6c 6c 73 20 74 6f | 20 42 69 6e 6f 6d 69 61 |calls to| Binomia|
|00001d10| 6c 55 70 70 65 72 42 6f | 75 6e 64 20 26 20 42 69 |lUpperBo|und & Bi|
|00001d20| 6e 6f 6d 69 61 6c 55 70 | 70 65 72 42 6f 75 6e 64 |nomialUp|perBound|
|00001d30| 20 74 6f 0d 09 09 09 09 | 63 6f 6e 66 6f 72 6d 20 | to.....|conform |
|00001d40| 74 6f 20 6e 65 77 20 64 | 65 66 69 6e 69 74 69 6f |to new d|efinitio|
|00001d50| 6e 2e 0d 38 2f 32 34 2f | 39 31 09 09 64 67 70 09 |n..8/24/|91..dgp.|
|00001d60| 4d 61 64 65 20 63 6f 6d | 70 61 74 69 62 6c 65 20 |Made com|patible |
|00001d70| 77 69 74 68 20 54 48 49 | 4e 4b 20 43 20 35 2e 30 |with THI|NK C 5.0|
|00001d80| 2e 0d 31 31 2f 31 37 2f | 39 32 09 64 67 70 20 4e |..11/17/|92.dgp N|
|00001d90| 6f 77 20 53 65 74 56 6f | 6c 28 29 20 61 66 74 65 |ow SetVo|l() afte|
|00001da0| 72 20 63 61 6c 6c 69 6e | 67 20 53 46 47 65 74 46 |r callin|g SFGetF|
|00001db0| 69 6c 65 2c 20 73 6f 20 | 74 68 61 74 20 66 69 6c |ile, so |that fil|
|00001dc0| 65 20 63 61 6e 20 62 65 | 20 69 6e 20 61 6e 79 20 |e can be| in any |
|00001dd0| 66 6f 6c 64 65 72 2c 0d | 09 09 09 09 6e 6f 74 20 |folder,.|....not |
|00001de0| 6a 75 73 74 20 74 68 65 | 20 73 61 6d 65 20 66 6f |just the| same fo|
|00001df0| 6c 64 65 72 20 74 68 61 | 74 20 51 75 69 63 6b 33 |lder tha|t Quick3|
|00001e00| 20 69 73 20 69 6e 2e 0d | 31 2f 31 39 2f 39 33 09 | is in..|1/19/93.|
|00001e10| 09 64 67 70 09 70 75 74 | 20 23 69 66 73 20 61 72 |.dgp.put| #ifs ar|
|00001e20| 6f 75 6e 64 20 74 68 65 | 20 4d 61 63 2d 64 65 70 |ound the| Mac-dep|
|00001e30| 65 6e 64 65 6e 74 20 63 | 6f 64 65 2e 0d 32 2f 32 |endent c|ode..2/2|
|00001e40| 30 2f 39 33 09 09 64 67 | 70 09 61 64 64 65 64 20 |0/93..dg|p.added |
|00001e50| 63 61 6c 6c 20 74 6f 20 | 52 65 71 75 69 72 65 28 |call to |Require(|
|00001e60| 29 2e 0d 38 2f 35 2f 39 | 33 09 09 64 67 70 09 6d |)..8/5/9|3..dgp.m|
|00001e70| 6f 76 65 64 20 63 61 6c | 6c 20 74 6f 20 52 65 71 |oved cal|l to Req|
|00001e80| 75 69 72 65 28 29 20 69 | 6e 74 6f 20 61 20 73 65 |uire() i|nto a se|
|00001e90| 70 61 72 61 74 65 20 6d | 61 69 6e 28 29 2c 20 73 |parate m|ain(), s|
|00001ea0| 69 6e 63 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |ince app|lication|
|00001eb0| 0d 09 09 09 09 66 61 69 | 6c 65 64 20 6f 6e 20 4d |.....fai|led on M|
|00001ec0| 61 63 20 50 6c 75 73 20 | 62 65 66 6f 72 65 20 69 |ac Plus |before i|
|00001ed0| 74 20 67 6f 74 20 74 6f | 20 74 68 65 20 63 61 6c |t got to| the cal|
|00001ee0| 6c 20 74 6f 20 52 65 71 | 75 69 72 65 28 29 2e 20 |l to Req|uire(). |
|00001ef0| 54 68 61 6e 6b 73 0d 09 | 09 09 09 74 6f 20 52 6f |Thanks..|...to Ro|
|00001f00| 62 65 72 74 20 46 72 69 | 65 64 6d 61 6e 20 66 72 |bert Fri|edman fr|
|00001f10| 69 65 64 6d 61 6e 40 63 | 6f 72 74 65 78 2e 68 65 |iedman@c|ortex.he|
|00001f20| 61 6c 74 68 2e 75 66 6c | 2e 65 64 75 20 66 6f 72 |alth.ufl|.edu for|
|00001f30| 20 72 65 70 6f 72 74 69 | 6e 67 20 74 68 65 0d 09 | reporti|ng the..|
|00001f40| 09 09 09 70 72 6f 62 6c | 65 6d 2e 0d 31 30 2f 31 |...probl|em..10/1|
|00001f50| 33 2f 39 33 09 64 67 70 | 09 61 64 64 65 64 20 63 |3/93.dgp|.added c|
|00001f60| 6f 6d 6d 65 6e 74 73 20 | 61 62 6f 75 74 20 43 72 |omments |about Cr|
|00001f70| 69 63 6b 65 74 47 72 61 | 70 68 49 49 49 2e 20 41 |icketGra|phIII. A|
|00001f80| 6c 6c 6f 77 20 63 6f 6d | 70 69 6c 65 2d 74 69 6d |llow com|pile-tim|
|00001f90| 65 20 63 68 6f 69 63 65 | 20 6f 66 0d 09 09 09 09 |e choice| of.....|
|00001fa0| 4d 61 63 20 66 69 6c 65 | 27 73 20 63 72 65 61 74 |Mac file|'s creat|
|00001fb0| 6f 72 2e 0d 33 2f 31 33 | 2f 39 34 09 09 64 67 70 |or..3/13|/94..dgp|
|00001fc0| 09 72 65 70 6c 61 63 65 | 64 20 4d 79 46 47 65 74 |.replace|d MyFGet|
|00001fd0| 73 20 62 79 20 73 74 61 | 6e 64 61 72 64 20 66 67 |s by sta|ndard fg|
|00001fe0| 65 74 73 2e 20 45 64 69 | 74 65 64 20 74 68 65 20 |ets. Edi|ted the |
|00001ff0| 63 6f 64 65 20 73 6c 69 | 67 68 74 6c 79 2c 20 6d |code sli|ghtly, m|
|00002000| 61 6b 69 6e 67 0d 09 09 | 09 09 69 74 20 61 20 62 |aking...|..it a b|
|00002010| 69 74 20 6d 6f 72 65 20 | 72 65 73 69 6c 69 65 6e |it more |resilien|
|00002020| 74 20 6f 66 20 65 72 72 | 6f 72 73 20 69 6e 20 64 |t of err|ors in d|
|00002030| 61 74 61 20 66 69 6c 65 | 20 66 6f 72 6d 61 74 2e |ata file| format.|
|00002040| 0d 36 2f 31 35 2f 39 34 | 09 09 64 67 70 09 73 6c |.6/15/94|..dgp.sl|
|00002050| 69 67 68 74 6c 79 20 65 | 6e 68 61 6e 63 65 64 20 |ightly e|nhanced |
|00002060| 74 68 65 20 63 6f 64 65 | 20 74 68 61 74 20 72 65 |the code| that re|
|00002070| 61 64 73 20 74 68 65 20 | 64 61 74 61 20 66 69 6c |ads the |data fil|
|00002080| 65 2c 20 74 6f 20 61 63 | 63 65 70 74 2c 20 65 2e |e, to ac|cept, e.|
|00002090| 67 2e 0d 09 09 09 09 33 | 34 2e 30 2c 20 61 73 20 |g......3|4.0, as |
|000020a0| 61 6e 20 69 6e 74 65 67 | 65 72 2e 20 45 72 69 6b |an integ|er. Erik|
|000020b0| 20 48 65 72 7a 6f 67 20 | 26 20 4b 61 74 65 79 20 | Herzog |& Katey |
|000020c0| 42 75 72 6e 73 20 68 61 | 64 20 67 6f 74 74 65 6e |Burns ha|d gotten|
|000020d0| 20 76 65 72 79 20 63 6f | 6e 66 75 73 65 64 0d 09 | very co|nfused..|
|000020e0| 09 09 09 62 79 20 51 75 | 69 63 6b 33 27 73 20 69 |...by Qu|ick3's i|
|000020f0| 6e 61 62 69 6c 69 74 79 | 20 74 6f 20 72 65 61 64 |nability| to read|
|00002100| 20 61 20 64 61 74 61 20 | 66 69 6c 65 20 70 72 6f | a data |file pro|
|00002110| 64 75 63 65 64 20 62 79 | 20 45 78 63 65 6c 20 74 |duced by| Excel t|
|00002120| 68 61 74 20 6c 6f 6f 6b | 65 64 0d 09 09 09 09 66 |hat look|ed.....f|
|00002130| 69 6e 65 20 62 75 74 20 | 77 61 73 20 72 65 61 64 |ine but |was read|
|00002140| 20 62 79 20 51 75 69 63 | 6b 33 20 61 73 20 6d 6f | by Quic|k3 as mo|
|00002150| 73 74 6c 79 20 7a 65 72 | 6f 2c 20 62 65 63 61 75 |stly zer|o, becau|
|00002160| 73 65 20 69 74 20 63 68 | 6f 6b 65 64 20 6f 6e 20 |se it ch|oked on |
|00002170| 74 68 65 0d 09 09 09 09 | 22 2e 30 22 20 74 68 61 |the.....|".0" tha|
|00002180| 74 20 45 78 63 65 6c 20 | 68 61 64 20 61 64 64 65 |t Excel |had adde|
|00002190| 64 20 74 6f 20 61 6c 6c | 20 74 68 65 20 69 6e 74 |d to all| the int|
|000021a0| 65 67 65 72 73 2e 0d 36 | 2f 31 36 2f 39 34 09 09 |egers..6|/16/94..|
|000021b0| 64 67 70 09 4e 65 69 74 | 68 65 72 20 43 41 2d 43 |dgp.Neit|her CA-C|
|000021c0| 72 69 63 6b 65 74 47 72 | 61 70 68 20 49 49 49 20 |ricketGr|aph III |
|000021d0| 31 2e 35 32 20 28 74 68 | 65 20 63 75 72 72 65 6e |1.52 (th|e curren|
|000021e0| 74 20 76 65 72 73 69 6f | 6e 29 20 6e 6f 72 20 44 |t versio|n) nor D|
|000021f0| 65 6c 74 61 47 72 61 70 | 68 20 33 0d 09 09 09 09 |eltaGrap|h 3.....|
|00002200| 77 69 6c 6c 20 6f 70 65 | 6e 20 61 20 74 65 78 74 |will ope|n a text|
|00002210| 20 66 69 6c 65 2c 20 6f | 66 20 77 68 69 63 68 20 | file, o|f which |
|00002220| 74 68 65 79 20 61 72 65 | 20 74 68 65 20 22 63 72 |they are| the "cr|
|00002230| 65 61 74 6f 72 22 2c 20 | 69 66 20 79 6f 75 20 6a |eator", |if you j|
|00002240| 75 73 74 0d 09 09 09 09 | 64 6f 75 62 6c 65 2d 63 |ust.....|double-c|
|00002250| 6c 69 63 6b 69 6e 67 20 | 74 68 65 20 74 65 78 74 |licking |the text|
|00002260| 20 66 69 6c 65 2e 20 4b | 61 6c 65 69 64 61 67 72 | file. K|aleidagr|
|00002270| 61 70 68 20 64 6f 65 73 | 2e 20 53 6f 20 74 68 65 |aph does|. So the|
|00002280| 20 70 6c 6f 74 20 66 69 | 6c 65 73 0d 09 09 09 09 | plot fi|les.....|
|00002290| 61 72 65 20 73 65 74 20 | 74 6f 20 68 61 76 65 20 |are set |to have |
|000022a0| 4b 61 6c 65 69 64 72 61 | 70 68 20 61 73 20 74 68 |Kaleidra|ph as th|
|000022b0| 65 20 63 72 65 61 74 6f | 72 2e 20 44 6f 75 62 6c |e creato|r. Doubl|
|000022c0| 65 20 63 6c 69 63 6b 69 | 6e 67 20 74 68 65 6d 20 |e clicki|ng them |
|000022d0| 77 69 6c 6c 0d 09 09 09 | 09 6f 70 65 6e 20 74 68 |will....|.open th|
|000022e0| 65 6d 20 61 73 20 64 61 | 74 61 20 73 68 65 65 74 |em as da|ta sheet|
|000022f0| 73 20 69 6e 20 4b 61 6c | 65 69 64 61 67 72 61 70 |s in Kal|eidagrap|
|00002300| 68 2c 20 77 68 65 72 65 | 20 79 6f 75 20 63 61 6e |h, where| you can|
|00002310| 20 67 72 61 70 68 20 74 | 68 65 6d 2e 0d 37 2f 32 | graph t|hem..7/2|
|00002320| 39 2f 39 34 20 64 67 70 | 20 45 6c 69 6d 69 6e 61 |9/94 dgp| Elimina|
|00002330| 74 65 64 20 75 73 65 20 | 6f 66 20 22 23 73 22 20 |ted use |of "#s" |
|00002340| 70 72 69 6e 74 66 20 66 | 6f 72 6d 61 74 2c 20 73 |printf f|ormat, s|
|00002350| 69 6e 63 65 20 69 74 27 | 73 20 6e 6f 74 20 73 75 |ince it'|s not su|
|00002360| 70 70 6f 72 74 65 64 20 | 62 79 0d 09 09 09 4d 65 |pported |by....Me|
|00002370| 74 72 6f 77 65 72 6b 73 | 20 43 6f 64 65 57 61 72 |trowerks| CodeWar|
|00002380| 72 69 6f 72 20 43 2e 0d | 39 2f 35 2f 39 34 20 64 |rior C..|9/5/94 d|
|00002390| 67 70 20 72 65 6d 6f 76 | 65 64 20 61 73 73 75 6d |gp remov|ed assum|
|000023a0| 70 74 69 6f 6e 20 69 6e | 20 70 72 69 6e 74 66 27 |ption in| printf'|
|000023b0| 73 20 74 68 61 74 20 69 | 6e 74 3d 3d 73 68 6f 72 |s that i|nt==shor|
|000023c0| 74 2e 0d 31 31 2f 31 2f | 39 34 20 64 67 70 20 66 |t..11/1/|94 dgp f|
|000023d0| 69 78 65 64 20 6d 69 6e | 6f 72 20 62 75 67 20 69 |ixed min|or bug i|
|000023e0| 6e 20 53 6f 72 74 41 6e | 64 4d 65 72 67 65 43 6f |n SortAn|dMergeCo|
|000023f0| 6e 74 72 61 73 74 73 20 | 72 65 70 6f 72 74 65 64 |ntrasts |reported|
|00002400| 20 62 79 20 42 61 72 74 | 20 46 61 72 65 6c 6c 2e | by Bart| Farell.|
|00002410| 20 49 66 20 74 68 65 72 | 65 0d 77 65 72 65 20 6d | If ther|e.were m|
|00002420| 6f 72 65 20 74 68 61 6e | 20 32 20 69 64 65 6e 74 |ore than| 2 ident|
|00002430| 69 63 61 6c 20 63 6f 6e | 74 72 61 73 74 73 2c 20 |ical con|trasts, |
|00002440| 74 68 65 20 33 72 64 20 | 77 6f 75 6c 64 20 6e 6f |the 3rd |would no|
|00002450| 74 20 62 65 20 6d 65 72 | 67 65 64 2e 20 54 68 69 |t be mer|ged. Thi|
|00002460| 73 20 64 69 64 20 6e 6f | 74 20 63 6f 72 72 75 70 |s did no|t corrup|
|00002470| 74 0d 61 6e 79 20 64 61 | 74 61 2c 20 69 74 20 6a |t.any da|ta, it j|
|00002480| 75 73 74 20 70 72 6f 64 | 75 63 65 64 20 61 20 6c |ust prod|uced a l|
|00002490| 65 73 73 20 63 6f 6d 70 | 61 63 74 20 70 72 69 6e |ess comp|act prin|
|000024a0| 74 6f 75 74 20 74 68 61 | 6e 20 69 74 20 73 68 6f |tout tha|n it sho|
|000024b0| 75 6c 64 2e 20 49 74 20 | 68 61 64 20 6e 6f 20 65 |uld. It |had no e|
|000024c0| 66 66 65 63 74 0d 6f 6e | 20 57 65 69 62 75 6c 6c |ffect.on| Weibull|
|000024d0| 20 66 69 74 73 20 73 69 | 6e 63 65 20 74 68 65 79 | fits si|nce they|
|000024e0| 20 65 66 66 65 63 74 69 | 76 65 6c 79 20 74 72 65 | effecti|vely tre|
|000024f0| 61 74 20 65 61 63 68 20 | 74 72 69 61 6c 20 69 6e |at each |trial in|
|00002500| 64 65 70 65 6e 64 65 6e | 74 6c 79 2c 20 62 75 74 |dependen|tly, but|
|00002510| 20 69 74 20 64 69 64 0d | 61 6c 6c 6f 77 20 61 6e | it did.|allow an|
|00002520| 20 65 78 74 72 61 20 64 | 65 67 72 65 65 20 6f 66 | extra d|egree of|
|00002530| 20 66 72 65 65 64 6f 6d | 20 70 65 72 20 75 6e 6d | freedom| per unm|
|00002540| 65 72 67 65 64 20 63 6f | 6e 74 72 61 73 74 20 74 |erged co|ntrast t|
|00002550| 6f 20 74 68 65 20 6d 6f | 6e 6f 74 6f 6e 69 63 20 |o the mo|notonic |
|00002560| 66 69 74 2e 0d 43 68 61 | 6e 67 65 64 20 74 68 65 |fit..Cha|nged the|
|00002570| 20 22 63 6f 6e 74 72 61 | 73 74 73 22 20 66 69 65 | "contra|sts" fie|
|00002580| 6c 64 20 66 72 6f 6d 20 | 22 69 6e 74 22 20 74 6f |ld from |"int" to|
|00002590| 20 22 6c 6f 6e 67 22 2e | 0d 2a 2f 0d 2f 2f 23 64 | "long".|.*/.//#d|
|000025a0| 65 66 69 6e 65 20 50 4c | 4f 54 5f 43 52 45 41 54 |efine PL|OT_CREAT|
|000025b0| 4f 52 09 27 43 47 52 46 | 27 09 2f 2a 20 4d 61 63 |OR.'CGRF|'./* Mac|
|000025c0| 69 6e 74 6f 73 68 20 43 | 72 69 63 6b 65 74 20 47 |intosh C|ricket G|
|000025d0| 72 61 70 68 20 54 45 58 | 54 20 66 69 6c 65 20 2a |raph TEX|T file *|
|000025e0| 2f 0d 2f 2f 23 64 65 66 | 69 6e 65 20 50 4c 4f 54 |/.//#def|ine PLOT|
|000025f0| 5f 43 52 45 41 54 4f 52 | 09 27 43 52 47 52 27 09 |_CREATOR|.'CRGR'.|
|00002600| 2f 2a 20 4d 61 63 69 6e | 74 6f 73 68 20 43 41 2d |/* Macin|tosh CA-|
|00002610| 43 72 69 63 6b 65 74 20 | 47 72 61 70 68 20 49 49 |Cricket |Graph II|
|00002620| 49 20 54 45 58 54 20 66 | 69 6c 65 20 2a 2f 0d 23 |I TEXT f|ile */.#|
|00002630| 64 65 66 69 6e 65 20 50 | 4c 4f 54 5f 43 52 45 41 |define P|LOT_CREA|
|00002640| 54 4f 52 09 27 51 4b 50 | 54 27 09 2f 2a 20 4d 61 |TOR.'QKP|T'./* Ma|
|00002650| 63 69 6e 74 6f 73 68 20 | 4b 61 6c 65 69 64 61 67 |cintosh |Kaleidag|
|00002660| 72 61 70 68 20 54 45 58 | 54 20 66 69 6c 65 20 2a |raph TEX|T file *|
|00002670| 2f 0d 23 69 6e 63 6c 75 | 64 65 20 22 56 69 64 65 |/.#inclu|de "Vide|
|00002680| 6f 54 6f 6f 6c 62 6f 78 | 2e 68 22 0d 23 69 6e 63 |oToolbox|.h".#inc|
|00002690| 6c 75 64 65 20 22 51 75 | 69 63 6b 33 2e 68 22 0d |lude "Qu|ick3.h".|
|000026a0| 23 69 6e 63 6c 75 64 65 | 20 22 6e 72 2e 68 22 09 |#include| "nr.h".|
|000026b0| 09 09 09 2f 2a 20 4e 75 | 6d 65 72 69 63 61 6c 20 |.../* Nu|merical |
|000026c0| 52 65 63 69 70 65 73 20 | 69 6e 20 43 2a 2f 0d 23 |Recipes |in C*/.#|
|000026d0| 69 6e 63 6c 75 64 65 20 | 3c 61 73 73 65 72 74 2e |include |<assert.|
|000026e0| 68 3e 0d 23 69 66 20 4d | 41 43 49 4e 54 4f 53 48 |h>.#if M|ACINTOSH|
|000026f0| 0d 09 23 69 6e 63 6c 75 | 64 65 20 3c 51 75 69 63 |..#inclu|de <Quic|
|00002700| 6b 44 72 61 77 2e 68 3e | 0d 09 23 69 6e 63 6c 75 |kDraw.h>|..#inclu|
|00002710| 64 65 20 3c 53 74 61 6e | 64 61 72 64 46 69 6c 65 |de <Stan|dardFile|
|00002720| 2e 68 3e 0d 23 65 6e 64 | 69 66 0d 76 6f 69 64 20 |.h>.#end|if.void |
|00002730| 51 75 69 63 6b 33 28 76 | 6f 69 64 29 3b 0d 0d 76 |Quick3(v|oid);..v|
|00002740| 6f 69 64 20 6d 61 69 6e | 28 76 6f 69 64 29 0d 7b |oid main|(void).{|
|00002750| 0d 09 23 69 66 20 4d 41 | 43 49 4e 54 4f 53 48 0d |..#if MA|CINTOSH.|
|00002760| 09 09 52 65 71 75 69 72 | 65 28 30 29 3b 09 2f 2f |..Requir|e(0);.//|
|00002770| 20 63 68 65 63 6b 20 66 | 6f 72 20 61 6e 79 20 72 | check f|or any r|
|00002780| 65 71 75 69 72 65 64 20 | 63 70 75 20 61 6e 64 20 |equired |cpu and |
|00002790| 66 70 75 2e 0d 09 23 65 | 6e 64 69 66 0d 09 51 75 |fpu...#e|ndif..Qu|
|000027a0| 69 63 6b 33 28 29 3b 0d | 7d 0d 76 6f 69 64 20 51 |ick3();.|}.void Q|
|000027b0| 75 69 63 6b 33 28 76 6f | 69 64 29 0d 7b 0d 09 73 |uick3(vo|id).{..s|
|000027c0| 74 61 74 69 63 20 64 61 | 74 61 52 65 63 6f 72 64 |tatic da|taRecord|
|000027d0| 20 64 61 74 61 2c 6d 6f | 6e 6f 74 6f 6e 69 63 44 | data,mo|notonicD|
|000027e0| 61 74 61 3b 0d 09 63 6f | 6e 74 72 61 73 74 52 65 |ata;..co|ntrastRe|
|000027f0| 63 6f 72 64 20 2a 63 50 | 74 72 3b 0d 09 73 74 61 |cord *cP|tr;..sta|
|00002800| 74 69 63 20 70 61 72 61 | 6d 52 65 63 6f 72 64 20 |tic para|mRecord |
|00002810| 70 61 72 61 6d 73 2c 20 | 69 6e 69 74 50 61 72 61 |params, |initPara|
|00002820| 6d 73 3b 0d 09 64 6f 75 | 62 6c 65 20 2a 70 61 72 |ms;..dou|ble *par|
|00002830| 61 6d 50 74 72 3d 26 70 | 61 72 61 6d 73 2e 6c 6f |amPtr=&p|arams.lo|
|00002840| 67 41 6c 70 68 61 3b 09 | 2f 2a 20 61 20 67 65 6e |gAlpha;.|/* a gen|
|00002850| 65 72 69 63 20 77 61 79 | 20 6f 66 20 61 63 63 65 |eric way| of acce|
|00002860| 73 73 69 6e 67 20 74 68 | 65 20 70 61 72 61 6d 65 |ssing th|e parame|
|00002870| 74 65 72 73 20 2a 2f 0d | 09 6c 6f 6e 67 20 69 3b |ters */.|.long i;|
|00002880| 0d 09 64 6f 75 62 6c 65 | 20 63 68 69 53 71 75 61 |..double| chiSqua|
|00002890| 72 65 2c 6d 6f 64 65 6c | 4c 4c 2c 6d 6f 6e 6f 74 |re,model|LL,monot|
|000028a0| 6f 6e 69 63 4c 4c 3b 09 | 2f 2a 20 6c 6f 67 20 6c |onicLL;.|/* log l|
|000028b0| 69 6b 65 6c 69 68 6f 6f | 64 20 2a 2f 0d 09 69 6e |ikelihoo|d */..in|
|000028c0| 74 20 63 68 69 53 71 75 | 61 72 65 44 46 2c 6d 6f |t chiSqu|areDF,mo|
|000028d0| 64 65 6c 44 46 2c 6d 6f | 6e 6f 74 6f 6e 69 63 44 |delDF,mo|notonicD|
|000028e0| 46 3b 09 2f 2a 20 64 65 | 67 72 65 65 73 20 6f 66 |F;./* de|grees of|
|000028f0| 20 66 72 65 65 64 6f 6d | 20 2a 2f 0d 09 64 6f 75 | freedom| */..dou|
|00002900| 62 6c 65 20 73 69 67 6e | 69 66 69 63 61 6e 63 65 |ble sign|ificance|
|00002910| 3b 0d 09 46 49 4c 45 20 | 2a 64 61 74 61 46 69 6c |;..FILE |*dataFil|
|00002920| 65 3d 4e 55 4c 4c 2c 2a | 66 69 74 46 69 6c 65 3d |e=NULL,*|fitFile=|
|00002930| 4e 55 4c 4c 2c 2a 70 6c | 6f 74 46 69 6c 65 3d 4e |NULL,*pl|otFile=N|
|00002940| 55 4c 4c 3b 0d 09 63 68 | 61 72 20 64 61 74 61 46 |ULL;..ch|ar dataF|
|00002950| 69 6c 65 4e 61 6d 65 5b | 35 30 5d 2c 66 69 74 46 |ileName[|50],fitF|
|00002960| 69 6c 65 4e 61 6d 65 5b | 35 30 5d 2c 70 6c 6f 74 |ileName[|50],plot|
|00002970| 46 69 6c 65 4e 61 6d 65 | 5b 35 30 5d 2c 73 74 72 |FileName|[50],str|
|00002980| 69 6e 67 5b 31 30 30 5d | 2c 2a 73 3b 0d 09 63 68 |ing[100]|,*s;..ch|
|00002990| 61 72 20 63 6f 6e 64 69 | 74 69 6f 6e 4e 61 6d 65 |ar condi|tionName|
|000029a0| 5b 31 30 30 5d 3b 0d 09 | 6c 6f 6e 67 20 74 72 69 |[100];..|long tri|
|000029b0| 61 6c 73 3b 0d 09 75 6e | 73 69 67 6e 65 64 20 69 |als;..un|signed i|
|000029c0| 6e 74 20 61 3b 0d 09 50 | 73 79 63 68 6f 6d 65 74 |nt a;..P|sychomet|
|000029d0| 72 69 63 46 75 6e 63 74 | 69 6f 6e 50 74 72 20 4d |ricFunct|ionPtr M|
|000029e0| 6f 64 65 6c 46 75 6e 63 | 74 69 6f 6e 3d 26 57 65 |odelFunc|tion=&We|
|000029f0| 69 62 75 6c 6c 3b 09 2f | 2a 20 61 20 70 73 79 63 |ibull;./|* a psyc|
|00002a00| 68 6f 6d 65 74 72 69 63 | 20 66 75 6e 63 74 69 6f |hometric| functio|
|00002a10| 6e 20 2a 2f 0d 09 73 74 | 61 74 69 63 20 63 6f 6e |n */..st|atic con|
|00002a20| 73 74 20 63 68 61 72 20 | 6d 6f 64 65 6c 4e 61 6d |st char |modelNam|
|00002a30| 65 5b 5d 3d 22 57 65 69 | 62 75 6c 6c 22 3b 0d 09 |e[]="Wei|bull";..|
|00002a40| 73 74 61 74 69 63 20 63 | 6f 6e 73 74 20 63 68 61 |static c|onst cha|
|00002a50| 72 20 70 61 72 61 6d 4e | 61 6d 65 5b 50 41 52 41 |r paramN|ame[PARA|
|00002a60| 4d 53 5d 5b 31 36 5d 3d | 7b 22 6c 6f 67 41 6c 70 |MS][16]=|{"logAlp|
|00002a70| 68 61 22 2c 22 62 65 74 | 61 22 2c 22 67 61 6d 6d |ha","bet|a","gamm|
|00002a80| 61 22 2c 22 64 65 6c 74 | 61 22 7d 3b 0d 09 23 69 |a","delt|a"};..#i|
|00002a90| 66 20 4d 41 43 49 4e 54 | 4f 53 48 0d 09 09 50 6f |f MACINT|OSH...Po|
|00002aa0| 69 6e 74 20 77 68 65 72 | 65 3b 0d 09 09 73 74 61 |int wher|e;...sta|
|00002ab0| 74 69 63 20 53 46 54 79 | 70 65 4c 69 73 74 20 74 |tic SFTy|peList t|
|00002ac0| 79 70 65 4c 69 73 74 3b | 0d 09 09 73 74 61 74 69 |ypeList;|...stati|
|00002ad0| 63 20 53 46 52 65 70 6c | 79 20 72 65 70 6c 79 3b |c SFRepl|y reply;|
|00002ae0| 0d 09 09 61 73 73 65 72 | 74 28 53 74 61 63 6b 53 |...asser|t(StackS|
|00002af0| 70 61 63 65 28 29 3e 34 | 30 30 30 29 3b 0d 09 23 |pace()>4|000);..#|
|00002b00| 65 6e 64 69 66 0d 0d 09 | 4d 61 78 69 6d 69 7a 65 |endif...|Maximize|
|00002b10| 43 6f 6e 73 6f 6c 65 48 | 65 69 67 68 74 28 29 3b |ConsoleH|eight();|
|00002b20| 0d 09 70 72 69 6e 74 66 | 28 22 5c 6e 22 29 3b 09 |..printf|("\n");.|
|00002b30| 2f 2a 20 61 73 6b 20 54 | 48 49 4e 4b 20 43 20 74 |/* ask T|HINK C t|
|00002b40| 6f 20 69 6e 69 74 20 51 | 75 69 63 6b 44 72 61 77 |o init Q|uickDraw|
|00002b50| 20 2a 2f 0d 0d 09 2f 2a | 20 69 6e 69 74 69 61 6c | */.../*| initial|
|00002b60| 20 76 61 6c 75 65 73 20 | 66 6f 72 20 74 68 65 20 | values |for the |
|00002b70| 70 61 72 61 6d 65 74 65 | 72 73 20 6f 66 20 74 68 |paramete|rs of th|
|00002b80| 65 20 70 73 79 63 68 6f | 6d 65 74 72 69 63 20 66 |e psycho|metric f|
|00002b90| 75 6e 63 74 69 6f 6e 20 | 2a 2f 0d 09 70 61 72 61 |unction |*/..para|
|00002ba0| 6d 73 2e 6c 6f 67 41 6c | 70 68 61 3d 30 2e 30 3b |ms.logAl|pha=0.0;|
|00002bb0| 0d 09 70 61 72 61 6d 73 | 2e 62 65 74 61 3d 33 2e |..params|.beta=3.|
|00002bc0| 35 3b 0d 09 70 61 72 61 | 6d 73 2e 67 61 6d 6d 61 |5;..para|ms.gamma|
|00002bd0| 3d 30 2e 35 3b 0d 09 70 | 61 72 61 6d 73 2e 64 65 |=0.5;..p|arams.de|
|00002be0| 6c 74 61 3d 30 2e 30 31 | 3b 0d 09 0d 09 23 69 66 |lta=0.01|;....#if|
|00002bf0| 20 4d 41 43 49 4e 54 4f | 53 48 0d 09 09 77 68 65 | MACINTO|SH...whe|
|00002c00| 72 65 2e 68 3d 31 30 30 | 3b 0d 09 09 77 68 65 72 |re.h=100|;...wher|
|00002c10| 65 2e 76 3d 31 30 30 3b | 0d 09 09 74 79 70 65 4c |e.v=100;|...typeL|
|00002c20| 69 73 74 5b 30 5d 3d 27 | 54 45 58 54 27 3b 0d 09 |ist[0]='|TEXT';..|
|00002c30| 09 72 65 70 6c 79 2e 76 | 65 72 73 69 6f 6e 3d 30 |.reply.v|ersion=0|
|00002c40| 3b 0d 09 09 53 46 47 65 | 74 46 69 6c 65 28 77 68 |;...SFGe|tFile(wh|
|00002c50| 65 72 65 2c 22 5c 70 22 | 2c 4e 55 4c 4c 2c 31 2c |ere,"\p"|,NULL,1,|
|00002c60| 74 79 70 65 4c 69 73 74 | 2c 4e 55 4c 4c 2c 26 72 |typeList|,NULL,&r|
|00002c70| 65 70 6c 79 29 3b 0d 09 | 09 69 66 28 21 72 65 70 |eply);..|.if(!rep|
|00002c80| 6c 79 2e 67 6f 6f 64 29 | 50 72 69 6e 74 66 45 78 |ly.good)|PrintfEx|
|00002c90| 69 74 28 22 43 6f 75 6c | 64 6e 27 74 20 6f 70 65 |it("Coul|dn't ope|
|00002ca0| 6e 20 66 69 6c 65 2e 5c | 6e 22 29 3b 0d 09 09 53 |n file.\|n");...S|
|00002cb0| 65 74 56 6f 6c 28 4e 55 | 4c 4c 2c 72 65 70 6c 79 |etVol(NU|LL,reply|
|00002cc0| 2e 76 52 65 66 4e 75 6d | 29 3b 09 2f 2a 20 6c 6f |.vRefNum|);./* lo|
|00002cd0| 6f 6b 20 69 6e 20 74 68 | 61 74 20 66 6f 6c 64 65 |ok in th|at folde|
|00002ce0| 72 20 2a 2f 0d 09 09 73 | 74 72 63 70 79 28 64 61 |r */...s|trcpy(da|
|00002cf0| 74 61 46 69 6c 65 4e 61 | 6d 65 2c 70 32 63 73 74 |taFileNa|me,p2cst|
|00002d00| 72 28 72 65 70 6c 79 2e | 66 4e 61 6d 65 29 29 3b |r(reply.|fName));|
|00002d10| 0d 09 23 65 6c 73 65 0d | 09 09 2f 2f 20 49 6e 73 |..#else.|..// Ins|
|00002d20| 65 72 74 20 63 6f 64 65 | 20 68 65 72 65 20 74 6f |ert code| here to|
|00002d30| 20 67 65 74 20 64 61 74 | 61 20 66 69 6c 65 20 6e | get dat|a file n|
|00002d40| 61 6d 65 20 69 6e 74 6f | 20 64 61 74 61 46 69 6c |ame into| dataFil|
|00002d50| 65 4e 61 6d 65 2e 0d 09 | 23 65 6e 64 69 66 0d 09 |eName...|#endif..|
|00002d60| 64 61 74 61 46 69 6c 65 | 3d 66 6f 70 65 6e 28 64 |dataFile|=fopen(d|
|00002d70| 61 74 61 46 69 6c 65 4e | 61 6d 65 2c 22 72 22 29 |ataFileN|ame,"r")|
|00002d80| 3b 0d 09 69 66 28 64 61 | 74 61 46 69 6c 65 3d 3d |;..if(da|taFile==|
|00002d90| 4e 55 4c 4c 29 0d 09 09 | 50 72 69 6e 74 66 45 78 |NULL)...|PrintfEx|
|00002da0| 69 74 28 22 5c 30 30 37 | 53 6f 72 72 79 2c 20 63 |it("\007|Sorry, c|
|00002db0| 61 6e 27 74 20 66 69 6e | 64 20 66 69 6c 65 20 5c |an't fin|d file \|
|00002dc0| 22 25 73 5c 22 2e 5c 30 | 30 37 5c 6e 22 2c 64 61 |"%s\".\0|07\n",da|
|00002dd0| 74 61 46 69 6c 65 4e 61 | 6d 65 29 3b 0d 09 70 72 |taFileNa|me);..pr|
|00002de0| 69 6e 74 66 28 22 52 65 | 61 64 69 6e 67 20 5c 22 |intf("Re|ading \"|
|00002df0| 25 73 5c 22 5c 6e 22 2c | 64 61 74 61 46 69 6c 65 |%s\"\n",|dataFile|
|00002e00| 4e 61 6d 65 29 3b 0d 09 | 73 74 72 63 70 79 28 73 |Name);..|strcpy(s|
|00002e10| 74 72 69 6e 67 2c 64 61 | 74 61 46 69 6c 65 4e 61 |tring,da|taFileNa|
|00002e20| 6d 65 29 3b 0d 09 69 66 | 28 73 74 72 73 74 72 28 |me);..if|(strstr(|
|00002e30| 73 74 72 69 6e 67 2c 22 | 2e 64 61 74 61 22 29 29 |string,"|.data"))|
|00002e40| 73 74 72 63 70 79 28 73 | 74 72 73 74 72 28 73 74 |strcpy(s|trstr(st|
|00002e50| 72 69 6e 67 2c 22 2e 64 | 61 74 61 22 29 2c 22 22 |ring,".d|ata"),""|
|00002e60| 29 3b 0d 09 65 6c 73 65 | 20 69 66 28 73 74 72 73 |);..else| if(strs|
|00002e70| 74 72 28 73 74 72 69 6e | 67 2c 22 2e 79 65 73 22 |tr(strin|g,".yes"|
|00002e80| 29 29 73 74 72 63 70 79 | 28 73 74 72 73 74 72 28 |))strcpy|(strstr(|
|00002e90| 73 74 72 69 6e 67 2c 22 | 2e 79 65 73 22 29 2c 22 |string,"|.yes"),"|
|00002ea0| 22 29 3b 0d 09 69 66 28 | 73 74 72 6c 65 6e 28 73 |");..if(|strlen(s|
|00002eb0| 74 72 69 6e 67 29 3e 30 | 29 7b 0d 09 09 73 70 72 |tring)>0|){...spr|
|00002ec0| 69 6e 74 66 28 66 69 74 | 46 69 6c 65 4e 61 6d 65 |intf(fit|FileName|
|00002ed0| 2c 22 25 73 2e 66 69 74 | 22 2c 73 74 72 69 6e 67 |,"%s.fit|",string|
|00002ee0| 29 3b 0d 09 09 70 72 69 | 6e 74 66 28 22 43 72 65 |);...pri|ntf("Cre|
|00002ef0| 61 74 69 6e 67 20 6f 75 | 74 70 75 74 20 66 69 6c |ating ou|tput fil|
|00002f00| 65 73 3a 5c 6e 25 73 5c | 6e 25 73 2e 3c 63 6f 6e |es:\n%s\|n%s.<con|
|00002f10| 64 69 74 69 6f 6e 20 6e | 61 6d 65 3e 2e 70 6c 6f |dition n|ame>.plo|
|00002f20| 74 5c 6e 22 0d 09 09 09 | 2c 66 69 74 46 69 6c 65 |t\n"....|,fitFile|
|00002f30| 4e 61 6d 65 2c 73 74 72 | 69 6e 67 29 3b 0d 09 09 |Name,str|ing);...|
|00002f40| 66 69 74 46 69 6c 65 3d | 66 6f 70 65 6e 28 66 69 |fitFile=|fopen(fi|
|00002f50| 74 46 69 6c 65 4e 61 6d | 65 2c 22 77 22 29 3b 0d |tFileNam|e,"w");.|
|00002f60| 09 09 69 66 28 66 69 74 | 46 69 6c 65 3d 3d 4e 55 |..if(fit|File==NU|
|00002f70| 4c 4c 29 0d 09 09 09 50 | 72 69 6e 74 66 45 78 69 |LL)....P|rintfExi|
|00002f80| 74 28 22 53 6f 72 72 79 | 2c 20 49 20 63 61 6e 27 |t("Sorry|, I can'|
|00002f90| 74 20 63 72 65 61 74 65 | 20 66 69 6c 65 20 5c 22 |t create| file \"|
|00002fa0| 25 73 5c 22 2e 5c 30 30 | 37 5c 6e 22 2c 66 69 74 |%s\".\00|7\n",fit|
|00002fb0| 46 69 6c 65 4e 61 6d 65 | 29 3b 0d 09 09 23 69 66 |FileName|);...#if|
|00002fc0| 20 4d 41 43 49 4e 54 4f | 53 48 0d 09 09 09 53 65 | MACINTO|SH....Se|
|00002fd0| 74 46 69 6c 65 49 6e 66 | 6f 28 66 69 74 46 69 6c |tFileInf|o(fitFil|
|00002fe0| 65 4e 61 6d 65 2c 27 54 | 45 58 54 27 2c 27 58 43 |eName,'T|EXT','XC|
|00002ff0| 45 4c 27 29 3b 09 09 2f | 2a 20 45 78 63 65 6c 20 |EL');../|* Excel |
|00003000| 66 69 6c 65 20 2a 2f 0d | 09 09 23 65 6e 64 69 66 |file */.|..#endif|
|00003010| 0d 09 7d 0d 09 6d 6f 64 | 65 6c 44 46 3d 50 41 52 |..}..mod|elDF=PAR|
|00003020| 41 4d 53 3b 09 2f 2a 20 | 6e 75 6d 62 65 72 20 6f |AMS;./* |number o|
|00003030| 66 20 70 61 72 61 6d 65 | 74 65 72 73 20 74 6f 20 |f parame|ters to |
|00003040| 62 65 20 61 64 6a 75 73 | 74 65 64 20 69 6e 20 66 |be adjus|ted in f|
|00003050| 69 74 74 69 6e 67 20 2a | 2f 0d 09 70 72 69 6e 74 |itting *|/..print|
|00003060| 66 28 22 48 6f 77 20 6d | 61 6e 79 20 70 61 72 61 |f("How m|any para|
|00003070| 6d 65 74 65 72 73 20 73 | 68 61 6c 6c 20 62 65 20 |meters s|hall be |
|00003080| 61 64 6a 75 73 74 61 62 | 6c 65 3f 20 30 20 74 6f |adjustab|le? 0 to|
|00003090| 20 25 64 20 28 25 64 29 | 3a 22 2c 28 69 6e 74 29 | %d (%d)|:",(int)|
|000030a0| 50 41 52 41 4d 53 2c 6d | 6f 64 65 6c 44 46 29 3b |PARAMS,m|odelDF);|
|000030b0| 0d 09 67 65 74 73 28 73 | 74 72 69 6e 67 29 3b 0d |..gets(s|tring);.|
|000030c0| 09 73 73 63 61 6e 66 28 | 73 74 72 69 6e 67 2c 22 |.sscanf(|string,"|
|000030d0| 25 64 22 2c 26 6d 6f 64 | 65 6c 44 46 29 3b 0d 09 |%d",&mod|elDF);..|
|000030e0| 66 6f 72 28 69 3d 31 3b | 69 3c 6d 6f 64 65 6c 44 |for(i=1;|i<modelD|
|000030f0| 46 3b 69 2b 2b 29 7b 0d | 09 09 70 72 69 6e 74 66 |F;i++){.|..printf|
|00003100| 28 22 49 6e 69 74 69 61 | 6c 20 76 61 6c 75 65 20 |("Initia|l value |
|00003110| 66 6f 72 20 25 73 3f 20 | 28 25 2e 32 66 29 3a 22 |for %s? |(%.2f):"|
|00003120| 2c 70 61 72 61 6d 4e 61 | 6d 65 5b 69 5d 2c 70 61 |,paramNa|me[i],pa|
|00003130| 72 61 6d 50 74 72 5b 69 | 5d 29 3b 0d 09 09 67 65 |ramPtr[i|]);...ge|
|00003140| 74 73 28 73 74 72 69 6e | 67 29 3b 0d 09 09 73 73 |ts(strin|g);...ss|
|00003150| 63 61 6e 66 28 73 74 72 | 69 6e 67 2c 22 25 6c 66 |canf(str|ing,"%lf|
|00003160| 22 2c 26 70 61 72 61 6d | 50 74 72 5b 69 5d 29 3b |",¶m|Ptr[i]);|
|00003170| 0d 09 7d 0d 09 66 6f 72 | 28 69 3d 6d 6f 64 65 6c |..}..for|(i=model|
|00003180| 44 46 3b 69 3c 50 41 52 | 41 4d 53 3b 69 2b 2b 29 |DF;i<PAR|AMS;i++)|
|00003190| 7b 0d 09 09 70 72 69 6e | 74 66 28 22 46 69 78 65 |{...prin|tf("Fixe|
|000031a0| 64 20 76 61 6c 75 65 20 | 66 6f 72 20 25 73 3f 20 |d value |for %s? |
|000031b0| 28 25 2e 32 66 29 3a 22 | 2c 70 61 72 61 6d 4e 61 |(%.2f):"|,paramNa|
|000031c0| 6d 65 5b 69 5d 2c 70 61 | 72 61 6d 50 74 72 5b 69 |me[i],pa|ramPtr[i|
|000031d0| 5d 29 3b 0d 09 09 67 65 | 74 73 28 73 74 72 69 6e |]);...ge|ts(strin|
|000031e0| 67 29 3b 0d 09 09 73 73 | 63 61 6e 66 28 73 74 72 |g);...ss|canf(str|
|000031f0| 69 6e 67 2c 22 25 6c 66 | 22 2c 26 70 61 72 61 6d |ing,"%lf|",¶m|
|00003200| 50 74 72 5b 69 5d 29 3b | 0d 09 7d 0d 09 69 6e 69 |Ptr[i]);|..}..ini|
|00003210| 74 50 61 72 61 6d 73 3d | 70 61 72 61 6d 73 3b 0d |tParams=|params;.|
|00003220| 09 0d 09 70 72 69 6e 74 | 66 28 22 52 65 61 64 69 |...print|f("Readi|
|00003230| 6e 67 20 25 73 5c 6e 22 | 2c 64 61 74 61 46 69 6c |ng %s\n"|,dataFil|
|00003240| 65 4e 61 6d 65 29 3b 0d | 09 69 66 28 66 69 74 46 |eName);.|.if(fitF|
|00003250| 69 6c 65 29 66 70 72 69 | 6e 74 66 28 66 69 74 46 |ile)fpri|ntf(fitF|
|00003260| 69 6c 65 2c 22 43 6f 6e | 64 69 74 69 6f 6e 5c 74 |ile,"Con|dition\t|
|00003270| 25 73 5c 74 25 73 5c 74 | 25 73 5c 74 25 73 5c 74 |%s\t%s\t|%s\t%s\t|
|00003280| 66 72 65 65 20 70 61 72 | 61 6d 73 22 0d 09 09 22 |free par|ams"..."|
|00003290| 5c 74 73 69 67 6e 69 66 | 2e 5c 74 43 68 69 20 73 |\tsignif|.\tChi s|
|000032a0| 71 2e 5c 74 64 2e 66 2e | 5c 74 74 72 69 61 6c 73 |q.\td.f.|\ttrials|
|000032b0| 5c 74 63 6f 6e 74 72 61 | 73 74 73 5c 6e 22 0d 09 |\tcontra|sts\n"..|
|000032c0| 09 2c 70 61 72 61 6d 4e | 61 6d 65 5b 30 5d 2c 70 |.,paramN|ame[0],p|
|000032d0| 61 72 61 6d 4e 61 6d 65 | 5b 31 5d 2c 70 61 72 61 |aramName|[1],para|
|000032e0| 6d 4e 61 6d 65 5b 32 5d | 2c 70 61 72 61 6d 4e 61 |mName[2]|,paramNa|
|000032f0| 6d 65 5b 33 5d 29 3b 0d | 09 77 68 69 6c 65 28 21 |me[3]);.|.while(!|
|00003300| 66 65 6f 66 28 64 61 74 | 61 46 69 6c 65 29 29 7b |feof(dat|aFile)){|
|00003310| 0d 09 09 2f 2f 20 6c 61 | 73 74 20 63 6f 6d 6d 65 |...// la|st comme|
|00003320| 6e 74 20 6c 69 6e 65 20 | 62 65 66 6f 72 65 20 64 |nt line |before d|
|00003330| 61 74 61 20 69 73 20 75 | 73 65 64 20 61 73 20 61 |ata is u|sed as a|
|00003340| 20 6e 61 6d 65 20 66 6f | 72 20 74 68 65 20 63 6f | name fo|r the co|
|00003350| 6e 64 69 74 69 6f 6e 0d | 09 09 66 67 65 74 73 28 |ndition.|..fgets(|
|00003360| 73 74 72 69 6e 67 2c 73 | 69 7a 65 6f 66 28 73 74 |string,s|izeof(st|
|00003370| 72 69 6e 67 29 2c 64 61 | 74 61 46 69 6c 65 29 3b |ring),da|taFile);|
|00003380| 0d 09 09 70 72 69 6e 74 | 66 28 22 5c 6e 22 29 3b |...print|f("\n");|
|00003390| 0d 09 09 77 68 69 6c 65 | 28 61 3d 66 67 65 74 63 |...while|(a=fgetc|
|000033a0| 28 64 61 74 61 46 69 6c | 65 29 2c 75 6e 67 65 74 |(dataFil|e),unget|
|000033b0| 63 28 61 2c 64 61 74 61 | 46 69 6c 65 29 2c 61 3d |c(a,data|File),a=|
|000033c0| 3d 27 23 27 20 7c 7c 20 | 61 3d 3d 45 4f 46 29 7b |='#' || |a==EOF){|
|000033d0| 0d 09 09 09 70 72 69 6e | 74 66 28 22 25 73 22 2c |....prin|tf("%s",|
|000033e0| 73 74 72 69 6e 67 29 3b | 09 09 09 09 09 09 09 09 |string);|........|
|000033f0| 2f 2a 20 65 63 68 6f 20 | 63 6f 6d 6d 65 6e 74 20 |/* echo |comment |
|00003400| 2a 2f 0d 09 09 09 69 66 | 28 66 69 74 46 69 6c 65 |*/....if|(fitFile|
|00003410| 29 66 70 72 69 6e 74 66 | 28 66 69 74 46 69 6c 65 |)fprintf|(fitFile|
|00003420| 2c 22 25 73 22 2c 73 74 | 72 69 6e 67 29 3b 0d 09 |,"%s",st|ring);..|
|00003430| 09 09 66 67 65 74 73 28 | 73 74 72 69 6e 67 2c 73 |..fgets(|string,s|
|00003440| 69 7a 65 6f 66 28 73 74 | 72 69 6e 67 29 2c 64 61 |izeof(st|ring),da|
|00003450| 74 61 46 69 6c 65 29 3b | 0d 09 09 09 69 66 28 66 |taFile);|....if(f|
|00003460| 65 6f 66 28 64 61 74 61 | 46 69 6c 65 29 29 62 72 |eof(data|File))br|
|00003470| 65 61 6b 3b 0d 09 09 7d | 0d 09 09 2f 2a 20 67 65 |eak;...}|.../* ge|
|00003480| 74 20 63 6f 6e 64 69 74 | 69 6f 6e 20 6e 61 6d 65 |t condit|ion name|
|00003490| 2e 20 53 74 72 69 70 20 | 6c 65 61 64 69 6e 67 20 |. Strip |leading |
|000034a0| 23 20 61 6e 64 20 61 6e | 79 20 74 72 61 69 6c 69 |# and an|y traili|
|000034b0| 6e 67 20 6a 75 6e 6b 20 | 2a 2f 0d 09 09 73 74 72 |ng junk |*/...str|
|000034c0| 63 70 79 28 63 6f 6e 64 | 69 74 69 6f 6e 4e 61 6d |cpy(cond|itionNam|
|000034d0| 65 2c 26 73 74 72 69 6e | 67 5b 31 5d 29 3b 0d 09 |e,&strin|g[1]);..|
|000034e0| 09 66 6f 72 28 69 3d 30 | 3b 69 3c 73 74 72 6c 65 |.for(i=0|;i<strle|
|000034f0| 6e 28 63 6f 6e 64 69 74 | 69 6f 6e 4e 61 6d 65 29 |n(condit|ionName)|
|00003500| 3b 69 2b 2b 29 0d 09 09 | 09 69 66 28 21 69 73 70 |;i++)...|.if(!isp|
|00003510| 72 69 6e 74 28 63 6f 6e | 64 69 74 69 6f 6e 4e 61 |rint(con|ditionNa|
|00003520| 6d 65 5b 69 5d 29 29 63 | 6f 6e 64 69 74 69 6f 6e |me[i]))c|ondition|
|00003530| 4e 61 6d 65 5b 69 5d 3d | 30 3b 0d 09 09 70 72 69 |Name[i]=|0;...pri|
|00003540| 6e 74 66 28 22 5c 6e 22 | 29 3b 0d 09 09 64 61 74 |ntf("\n"|);...dat|
|00003550| 61 2e 63 6f 6e 74 72 61 | 73 74 73 3d 30 3b 0d 09 |a.contra|sts=0;..|
|00003560| 09 77 68 69 6c 65 28 61 | 3d 66 67 65 74 63 28 64 |.while(a|=fgetc(d|
|00003570| 61 74 61 46 69 6c 65 29 | 2c 75 6e 67 65 74 63 28 |ataFile)|,ungetc(|
|00003580| 61 2c 64 61 74 61 46 69 | 6c 65 29 2c 61 21 3d 27 |a,dataFi|le),a!='|
|00003590| 23 27 20 26 26 20 61 21 | 3d 45 4f 46 29 7b 09 2f |#' && a!|=EOF){./|
|000035a0| 2a 20 72 65 61 64 20 64 | 61 74 61 20 2a 2f 0d 09 |* read d|ata */..|
|000035b0| 09 09 69 66 28 64 61 74 | 61 2e 63 6f 6e 74 72 61 |..if(dat|a.contra|
|000035c0| 73 74 73 3e 3d 4d 41 58 | 5f 43 4f 4e 54 52 41 53 |sts>=MAX|_CONTRAS|
|000035d0| 54 53 29 7b 0d 09 09 09 | 09 53 6f 72 74 41 6e 64 |TS){....|.SortAnd|
|000035e0| 4d 65 72 67 65 43 6f 6e | 74 72 61 73 74 73 28 26 |MergeCon|trasts(&|
|000035f0| 64 61 74 61 29 3b 0d 09 | 09 09 09 69 66 28 64 61 |data);..|...if(da|
|00003600| 74 61 2e 63 6f 6e 74 72 | 61 73 74 73 3e 3d 4d 41 |ta.contr|asts>=MA|
|00003610| 58 5f 43 4f 4e 54 52 41 | 53 54 53 29 0d 09 09 09 |X_CONTRA|STS)....|
|00003620| 09 09 50 72 69 6e 74 66 | 45 78 69 74 28 22 51 75 |..Printf|Exit("Qu|
|00003630| 69 63 6b 33 3a 20 63 61 | 6e 27 74 20 68 61 6e 64 |ick3: ca|n't hand|
|00003640| 6c 65 20 6d 6f 72 65 20 | 74 68 61 6e 20 25 64 20 |le more |than %d |
|00003650| 64 69 66 66 65 72 65 6e | 74 20 63 6f 6e 74 72 61 |differen|t contra|
|00003660| 73 74 73 2e 5c 6e 22 0d | 09 09 09 09 09 09 2c 28 |sts.\n".|......,(|
|00003670| 69 6e 74 29 4d 41 58 5f | 43 4f 4e 54 52 41 53 54 |int)MAX_|CONTRAST|
|00003680| 53 29 3b 0d 09 09 09 7d | 0d 09 09 09 66 67 65 74 |S);....}|....fget|
|00003690| 73 28 73 74 72 69 6e 67 | 2c 73 69 7a 65 6f 66 28 |s(string|,sizeof(|
|000036a0| 73 74 72 69 6e 67 29 2c | 64 61 74 61 46 69 6c 65 |string),|dataFile|
|000036b0| 29 3b 0d 09 09 09 69 3d | 64 61 74 61 2e 63 6f 6e |);....i=|data.con|
|000036c0| 74 72 61 73 74 73 3b 0d | 09 09 09 69 66 28 30 29 |trasts;.|...if(0)|
|000036d0| 73 73 63 61 6e 66 28 73 | 74 72 69 6e 67 2c 22 25 |sscanf(s|tring,"%|
|000036e0| 6c 66 5c 74 25 6c 64 5c | 74 25 6c 64 22 0d 09 09 |lf\t%ld\|t%ld"...|
|000036f0| 09 09 2c 26 64 61 74 61 | 2e 63 5b 69 5d 2e 63 6f |..,&data|.c[i].co|
|00003700| 6e 74 72 61 73 74 2c 26 | 64 61 74 61 2e 63 5b 69 |ntrast,&|data.c[i|
|00003710| 5d 2e 74 72 69 61 6c 73 | 2c 26 64 61 74 61 2e 63 |].trials|,&data.c|
|00003720| 5b 69 5d 2e 63 6f 72 72 | 65 63 74 29 3b 0d 09 09 |[i].corr|ect);...|
|00003730| 09 65 6c 73 65 7b 0d 09 | 09 09 09 2f 2f 20 74 68 |.else{..|...// th|
|00003740| 69 73 20 63 6f 64 65 20 | 77 69 6c 6c 20 61 63 63 |is code |will acc|
|00003750| 65 70 74 20 33 34 2e 30 | 20 61 73 20 61 6e 20 69 |ept 34.0| as an i|
|00003760| 6e 74 65 67 65 72 0d 09 | 09 09 09 73 3d 73 74 72 |nteger..|...s=str|
|00003770| 69 6e 67 3b 0d 09 09 09 | 09 64 61 74 61 2e 63 5b |ing;....|.data.c[|
|00003780| 69 5d 2e 63 6f 6e 74 72 | 61 73 74 3d 73 74 72 74 |i].contr|ast=strt|
|00003790| 6f 64 28 73 2c 26 73 29 | 3b 0d 09 09 09 09 64 61 |od(s,&s)|;.....da|
|000037a0| 74 61 2e 63 5b 69 5d 2e | 74 72 69 61 6c 73 3d 73 |ta.c[i].|trials=s|
|000037b0| 74 72 74 6f 64 28 73 2c | 26 73 29 3b 0d 09 09 09 |trtod(s,|&s);....|
|000037c0| 09 64 61 74 61 2e 63 5b | 69 5d 2e 63 6f 72 72 65 |.data.c[|i].corre|
|000037d0| 63 74 3d 73 74 72 74 6f | 64 28 73 2c 26 73 29 3b |ct=strto|d(s,&s);|
|000037e0| 0d 09 09 09 7d 0d 09 09 | 09 64 61 74 61 2e 63 6f |....}...|.data.co|
|000037f0| 6e 74 72 61 73 74 73 2b | 2b 3b 0d 09 09 7d 0d 09 |ntrasts+|+;...}..|
|00003800| 09 69 66 28 64 61 74 61 | 2e 63 6f 6e 74 72 61 73 |.if(data|.contras|
|00003810| 74 73 3d 3d 30 29 7b 0d | 09 09 09 2f 2f 20 4e 6f |ts==0){.|...// No|
|00003820| 20 64 61 74 61 2e 20 53 | 6b 69 70 20 74 6f 20 6e | data. S|kip to n|
|00003830| 65 78 74 20 63 6f 6e 64 | 69 74 69 6f 6e 2e 0d 09 |ext cond|ition...|
|00003840| 09 09 63 6f 6e 74 69 6e | 75 65 3b 0d 09 09 7d 0d |..contin|ue;...}.|
|00003850| 09 09 53 6f 72 74 41 6e | 64 4d 65 72 67 65 43 6f |..SortAn|dMergeCo|
|00003860| 6e 74 72 61 73 74 73 28 | 26 64 61 74 61 29 3b 0d |ntrasts(|&data);.|
|00003870| 09 09 74 72 69 61 6c 73 | 3d 30 3b 0d 09 09 66 6f |..trials|=0;...fo|
|00003880| 72 28 69 3d 30 3b 69 3c | 64 61 74 61 2e 63 6f 6e |r(i=0;i<|data.con|
|00003890| 74 72 61 73 74 73 3b 69 | 2b 2b 29 74 72 69 61 6c |trasts;i|++)trial|
|000038a0| 73 2b 3d 64 61 74 61 2e | 63 5b 69 5d 2e 74 72 69 |s+=data.|c[i].tri|
|000038b0| 61 6c 73 3b 09 2f 2a 20 | 74 6f 74 61 6c 20 74 72 |als;./* |total tr|
|000038c0| 69 61 6c 73 20 2a 2f 0d | 09 09 70 61 72 61 6d 73 |ials */.|..params|
|000038d0| 3d 69 6e 69 74 50 61 72 | 61 6d 73 3b 09 2f 2a 20 |=initPar|ams;./* |
|000038e0| 69 6e 69 74 69 61 6c 20 | 67 75 65 73 73 20 26 20 |initial |guess & |
|000038f0| 66 69 78 65 64 20 76 61 | 6c 75 65 73 20 2a 2f 0d |fixed va|lues */.|
|00003900| 09 09 69 66 28 6d 6f 64 | 65 6c 44 46 3e 30 29 0d |..if(mod|elDF>0).|
|00003910| 09 09 09 70 61 72 61 6d | 73 2e 6c 6f 67 41 6c 70 |...param|s.logAlp|
|00003920| 68 61 3d 6c 6f 67 28 64 | 61 74 61 2e 63 5b 64 61 |ha=log(d|ata.c[da|
|00003930| 74 61 2e 63 6f 6e 74 72 | 61 73 74 73 2f 32 5d 2e |ta.contr|asts/2].|
|00003940| 63 6f 6e 74 72 61 73 74 | 29 2f 6c 6f 67 28 31 30 |contrast|)/log(10|
|00003950| 2e 30 29 3b 09 2f 2a 20 | 6d 65 64 69 61 6e 20 63 |.0);./* |median c|
|00003960| 6f 6e 74 72 61 73 74 20 | 2a 2f 0d 09 09 70 72 69 |ontrast |*/...pri|
|00003970| 6e 74 66 28 22 25 73 5c | 6e 22 2c 63 6f 6e 64 69 |ntf("%s\|n",condi|
|00003980| 74 69 6f 6e 4e 61 6d 65 | 29 3b 0d 09 09 70 72 69 |tionName|);...pri|
|00003990| 6e 74 66 28 22 5c 74 25 | 73 20 20 20 25 73 20 20 |ntf("\t%|s %s |
|000039a0| 20 25 73 20 20 20 25 73 | 20 20 63 6f 6e 74 72 61 | %s %s| contra|
|000039b0| 73 74 73 20 74 72 69 61 | 6c 73 20 73 69 67 6e 69 |sts tria|ls signi|
|000039c0| 66 2e 20 43 68 69 20 73 | 71 2e 20 20 20 64 2e 66 |f. Chi s|q. d.f|
|000039d0| 2e 5c 6e 22 2c 0d 09 09 | 09 70 61 72 61 6d 4e 61 |.\n",...|.paramNa|
|000039e0| 6d 65 5b 30 5d 2c 70 61 | 72 61 6d 4e 61 6d 65 5b |me[0],pa|ramName[|
|000039f0| 31 5d 2c 70 61 72 61 6d | 4e 61 6d 65 5b 32 5d 2c |1],param|Name[2],|
|00003a00| 70 61 72 61 6d 4e 61 6d | 65 5b 33 5d 29 3b 0d 09 |paramNam|e[3]);..|
|00003a10| 09 70 72 69 6e 74 66 28 | 22 47 75 65 73 73 3a 22 |.printf(|"Guess:"|
|00003a20| 29 3b 0d 09 09 70 72 69 | 6e 74 66 28 22 5c 74 25 |);...pri|ntf("\t%|
|00003a30| 37 2e 32 66 25 38 2e 31 | 66 25 38 2e 32 66 25 38 |7.2f%8.1|f%8.2f%8|
|00003a40| 2e 32 66 5c 6e 22 2c 0d | 09 09 09 70 61 72 61 6d |.2f\n",.|...param|
|00003a50| 50 74 72 5b 30 5d 2c 70 | 61 72 61 6d 50 74 72 5b |Ptr[0],p|aramPtr[|
|00003a60| 31 5d 2c 70 61 72 61 6d | 50 74 72 5b 32 5d 2c 70 |1],param|Ptr[2],p|
|00003a70| 61 72 61 6d 50 74 72 5b | 33 5d 29 3b 0d 09 09 73 |aramPtr[|3]);...s|
|00003a80| 69 67 6e 69 66 69 63 61 | 6e 63 65 3d 50 73 79 63 |ignifica|nce=Psyc|
|00003a90| 68 6f 6d 65 74 72 69 63 | 46 69 74 28 26 70 61 72 |hometric|Fit(&par|
|00003aa0| 61 6d 73 2c 4d 6f 64 65 | 6c 46 75 6e 63 74 69 6f |ams,Mode|lFunctio|
|00003ab0| 6e 2c 26 64 61 74 61 2c | 26 6d 6f 64 65 6c 4c 4c |n,&data,|&modelLL|
|00003ac0| 2c 6d 6f 64 65 6c 44 46 | 2c 0d 09 09 09 26 63 68 |,modelDF|,....&ch|
|00003ad0| 69 53 71 75 61 72 65 2c | 26 63 68 69 53 71 75 61 |iSquare,|&chiSqua|
|00003ae0| 72 65 44 46 29 3b 0d 09 | 09 70 72 69 6e 74 66 28 |reDF);..|.printf(|
|00003af0| 22 46 69 74 3a 22 29 3b | 0d 09 09 70 72 69 6e 74 |"Fit:");|...print|
|00003b00| 66 28 22 5c 74 25 37 2e | 32 66 25 38 2e 31 66 25 |f("\t%7.|2f%8.1f%|
|00003b10| 38 2e 32 66 25 38 2e 32 | 66 22 2c 0d 09 09 09 70 |8.2f%8.2|f",....p|
|00003b20| 61 72 61 6d 50 74 72 5b | 30 5d 2c 70 61 72 61 6d |aramPtr[|0],param|
|00003b30| 50 74 72 5b 31 5d 2c 70 | 61 72 61 6d 50 74 72 5b |Ptr[1],p|aramPtr[|
|00003b40| 32 5d 2c 70 61 72 61 6d | 50 74 72 5b 33 5d 29 3b |2],param|Ptr[3]);|
|00003b50| 0d 09 09 70 72 69 6e 74 | 66 28 22 25 38 6c 64 25 |...print|f("%8ld%|
|00003b60| 38 6c 64 22 2c 64 61 74 | 61 2e 63 6f 6e 74 72 61 |8ld",dat|a.contra|
|00003b70| 73 74 73 2c 74 72 69 61 | 6c 73 29 3b 0d 09 09 70 |sts,tria|ls);...p|
|00003b80| 72 69 6e 74 66 28 22 25 | 38 2e 32 66 25 38 2e 31 |rintf("%|8.2f%8.1|
|00003b90| 66 25 38 64 5c 6e 22 2c | 73 69 67 6e 69 66 69 63 |f%8d\n",|signific|
|00003ba0| 61 6e 63 65 2c 63 68 69 | 53 71 75 61 72 65 2c 63 |ance,chi|Square,c|
|00003bb0| 68 69 53 71 75 61 72 65 | 44 46 29 3b 0d 09 09 69 |hiSquare|DF);...i|
|00003bc0| 66 28 66 69 74 46 69 6c | 65 29 66 70 72 69 6e 74 |f(fitFil|e)fprint|
|00003bd0| 66 28 66 69 74 46 69 6c | 65 2c 22 25 73 22 0d 09 |f(fitFil|e,"%s"..|
|00003be0| 09 09 09 22 5c 74 25 37 | 2e 34 66 5c 74 25 37 2e |..."\t%7|.4f\t%7.|
|00003bf0| 34 66 5c 74 25 37 2e 34 | 66 5c 74 25 37 2e 34 66 |4f\t%7.4|f\t%7.4f|
|00003c00| 5c 74 25 37 64 22 0d 09 | 09 09 09 22 5c 74 25 37 |\t%7d"..|..."\t%7|
|00003c10| 2e 34 66 5c 74 25 37 2e | 34 66 5c 74 25 37 64 22 |.4f\t%7.|4f\t%7d"|
|00003c20| 0d 09 09 09 09 22 5c 74 | 25 37 6c 64 5c 74 25 37 |....."\t|%7ld\t%7|
|00003c30| 6c 64 5c 6e 22 2c 0d 09 | 09 09 09 63 6f 6e 64 69 |ld\n",..|...condi|
|00003c40| 74 69 6f 6e 4e 61 6d 65 | 2c 0d 09 09 09 09 70 61 |tionName|,.....pa|
|00003c50| 72 61 6d 50 74 72 5b 30 | 5d 2c 70 61 72 61 6d 50 |ramPtr[0|],paramP|
|00003c60| 74 72 5b 31 5d 2c 70 61 | 72 61 6d 50 74 72 5b 32 |tr[1],pa|ramPtr[2|
|00003c70| 5d 2c 70 61 72 61 6d 50 | 74 72 5b 33 5d 2c 6d 6f |],paramP|tr[3],mo|
|00003c80| 64 65 6c 44 46 2c 0d 09 | 09 09 09 73 69 67 6e 69 |delDF,..|...signi|
|00003c90| 66 69 63 61 6e 63 65 2c | 63 68 69 53 71 75 61 72 |ficance,|chiSquar|
|00003ca0| 65 2c 63 68 69 53 71 75 | 61 72 65 44 46 2c 0d 09 |e,chiSqu|areDF,..|
|00003cb0| 09 09 09 74 72 69 61 6c | 73 2c 64 61 74 61 2e 63 |...trial|s,data.c|
|00003cc0| 6f 6e 74 72 61 73 74 73 | 29 3b 0d 09 0d 09 09 2f |ontrasts|);...../|
|00003cd0| 2a 20 4e 6f 77 20 63 72 | 65 61 74 65 20 70 6c 6f |* Now cr|eate plo|
|00003ce0| 74 20 66 69 6c 65 20 2a | 2f 0d 09 09 69 66 28 66 |t file *|/...if(f|
|00003cf0| 69 74 46 69 6c 65 29 7b | 0d 09 09 09 73 74 72 63 |itFile){|....strc|
|00003d00| 70 79 28 70 6c 6f 74 46 | 69 6c 65 4e 61 6d 65 2c |py(plotF|ileName,|
|00003d10| 66 69 74 46 69 6c 65 4e | 61 6d 65 29 3b 0d 09 09 |fitFileN|ame);...|
|00003d20| 09 70 6c 6f 74 46 69 6c | 65 4e 61 6d 65 5b 73 74 |.plotFil|eName[st|
|00003d30| 72 6c 65 6e 28 70 6c 6f | 74 46 69 6c 65 4e 61 6d |rlen(plo|tFileNam|
|00003d40| 65 29 2d 73 74 72 6c 65 | 6e 28 22 2e 66 69 74 22 |e)-strle|n(".fit"|
|00003d50| 29 5d 3d 30 3b 09 2f 2a | 20 73 74 72 69 70 20 6f |)]=0;./*| strip o|
|00003d60| 66 66 20 74 68 65 20 22 | 2e 66 69 74 22 20 2a 2f |ff the "|.fit" */|
|00003d70| 0d 09 09 09 73 70 72 69 | 6e 74 66 28 70 6c 6f 74 |....spri|ntf(plot|
|00003d80| 46 69 6c 65 4e 61 6d 65 | 2c 22 25 73 2e 25 73 2e |FileName|,"%s.%s.|
|00003d90| 70 6c 6f 74 22 2c 70 6c | 6f 74 46 69 6c 65 4e 61 |plot",pl|otFileNa|
|00003da0| 6d 65 2c 63 6f 6e 64 69 | 74 69 6f 6e 4e 61 6d 65 |me,condi|tionName|
|00003db0| 29 3b 0d 09 09 09 70 6c | 6f 74 46 69 6c 65 3d 66 |);....pl|otFile=f|
|00003dc0| 6f 70 65 6e 28 70 6c 6f | 74 46 69 6c 65 4e 61 6d |open(plo|tFileNam|
|00003dd0| 65 2c 22 77 22 29 3b 0d | 09 09 09 69 66 28 70 6c |e,"w");.|...if(pl|
|00003de0| 6f 74 46 69 6c 65 3d 3d | 4e 55 4c 4c 29 7b 0d 09 |otFile==|NULL){..|
|00003df0| 09 09 09 50 72 69 6e 74 | 66 45 78 69 74 28 22 53 |...Print|fExit("S|
|00003e00| 6f 72 72 79 2c 20 49 20 | 63 61 6e 27 74 20 63 72 |orry, I |can't cr|
|00003e10| 65 61 74 65 20 66 69 6c | 65 20 5c 22 25 73 5c 22 |eate fil|e \"%s\"|
|00003e20| 2e 5c 6e 5c 30 30 37 22 | 2c 70 6c 6f 74 46 69 6c |.\n\007"|,plotFil|
|00003e30| 65 4e 61 6d 65 29 3b 0d | 09 09 09 7d 0d 09 09 09 |eName);.|...}....|
|00003e40| 23 69 66 20 4d 41 43 49 | 4e 54 4f 53 48 0d 09 09 |#if MACI|NTOSH...|
|00003e50| 09 09 53 65 74 46 69 6c | 65 49 6e 66 6f 28 70 6c |..SetFil|eInfo(pl|
|00003e60| 6f 74 46 69 6c 65 4e 61 | 6d 65 2c 27 54 45 58 54 |otFileNa|me,'TEXT|
|00003e70| 27 2c 50 4c 4f 54 5f 43 | 52 45 41 54 4f 52 29 3b |',PLOT_C|REATOR);|
|00003e80| 09 2f 2a 20 73 70 65 63 | 69 66 79 20 67 72 61 70 |./* spec|ify grap|
|00003e90| 68 69 6e 67 20 70 72 6f | 67 72 61 6d 20 2a 2f 0d |hing pro|gram */.|
|00003ea0| 09 09 09 09 69 66 28 50 | 4c 4f 54 5f 43 52 45 41 |....if(P|LOT_CREA|
|00003eb0| 54 4f 52 3d 3d 27 43 47 | 52 46 27 29 66 70 72 69 |TOR=='CG|RF')fpri|
|00003ec0| 6e 74 66 28 70 6c 6f 74 | 46 69 6c 65 2c 22 2a 5c |ntf(plot|File,"*\|
|00003ed0| 6e 22 29 3b 0d 09 09 09 | 23 65 6e 64 69 66 0d 09 |n");....|#endif..|
|00003ee0| 09 09 6d 6f 6e 6f 74 6f | 6e 69 63 44 61 74 61 3d |..monoto|nicData=|
|00003ef0| 64 61 74 61 3b 0d 09 09 | 09 4d 6f 6e 6f 74 6f 6e |data;...|.Monoton|
|00003f00| 69 63 46 69 74 28 26 6d | 6f 6e 6f 74 6f 6e 69 63 |icFit(&m|onotonic|
|00003f10| 44 61 74 61 2c 26 6d 6f | 6e 6f 74 6f 6e 69 63 4c |Data,&mo|notonicL|
|00003f20| 4c 2c 26 6d 6f 6e 6f 74 | 6f 6e 69 63 44 46 29 3b |L,&monot|onicDF);|
|00003f30| 09 2f 2a 20 6f 76 65 72 | 77 72 69 74 65 73 20 64 |./* over|writes d|
|00003f40| 61 74 61 20 77 69 74 68 | 20 66 69 74 20 2a 2f 0d |ata with| fit */.|
|00003f50| 09 09 09 66 70 72 69 6e | 74 66 28 70 6c 6f 74 46 |...fprin|tf(plotF|
|00003f60| 69 6c 65 2c 22 43 6f 6e | 74 72 61 73 74 5c 74 25 |ile,"Con|trast\t%|
|00003f70| 73 5c 74 4c 6f 77 65 72 | 20 62 6f 75 6e 64 5c 74 |s\tLower| bound\t|
|00003f80| 55 70 70 65 72 20 62 6f | 75 6e 64 5c 74 25 73 20 |Upper bo|und\t%s |
|00003f90| 66 69 74 5c 74 4d 6f 6e | 6f 74 6f 6e 65 20 66 69 |fit\tMon|otone fi|
|00003fa0| 74 5c 74 54 72 69 61 6c | 73 5c 74 43 6f 72 72 65 |t\tTrial|s\tCorre|
|00003fb0| 63 74 5c 74 50 61 72 61 | 6d 65 74 65 72 73 5c 6e |ct\tPara|meters\n|
|00003fc0| 22 2c 0d 09 09 09 09 63 | 6f 6e 64 69 74 69 6f 6e |",.....c|ondition|
|00003fd0| 4e 61 6d 65 2c 6d 6f 64 | 65 6c 4e 61 6d 65 29 3b |Name,mod|elName);|
|00003fe0| 0d 09 09 09 66 6f 72 28 | 69 3d 30 3b 69 3c 64 61 |....for(|i=0;i<da|
|00003ff0| 74 61 2e 63 6f 6e 74 72 | 61 73 74 73 3b 69 2b 2b |ta.contr|asts;i++|
|00004000| 29 7b 0d 09 09 09 09 63 | 50 74 72 3d 26 64 61 74 |){.....c|Ptr=&dat|
|00004010| 61 2e 63 5b 69 5d 3b 0d | 09 09 09 09 66 70 72 69 |a.c[i];.|....fpri|
|00004020| 6e 74 66 28 70 6c 6f 74 | 46 69 6c 65 2c 22 25 2e |ntf(plot|File,"%.|
|00004030| 33 66 22 2c 63 50 74 72 | 2d 3e 63 6f 6e 74 72 61 |3f",cPtr|->contra|
|00004040| 73 74 29 3b 0d 09 09 09 | 09 69 66 28 63 50 74 72 |st);....|.if(cPtr|
|00004050| 2d 3e 74 72 69 61 6c 73 | 3e 30 29 7b 0d 09 09 09 |->trials|>0){....|
|00004060| 09 09 66 70 72 69 6e 74 | 66 28 70 6c 6f 74 46 69 |..fprint|f(plotFi|
|00004070| 6c 65 2c 22 5c 74 25 2e | 33 66 22 2c 63 50 74 72 |le,"\t%.|3f",cPtr|
|00004080| 2d 3e 63 6f 72 72 65 63 | 74 2f 28 64 6f 75 62 6c |->correc|t/(doubl|
|00004090| 65 29 63 50 74 72 2d 3e | 74 72 69 61 6c 73 29 3b |e)cPtr->|trials);|
|000040a0| 0d 09 09 09 09 09 66 70 | 72 69 6e 74 66 28 70 6c |......fp|rintf(pl|
|000040b0| 6f 74 46 69 6c 65 2c 22 | 5c 74 25 2e 33 66 5c 74 |otFile,"|\t%.3f\t|
|000040c0| 25 2e 33 66 22 2c 0d 09 | 09 09 09 09 09 42 69 6e |%.3f",..|.....Bin|
|000040d0| 6f 6d 69 61 6c 4c 6f 77 | 65 72 42 6f 75 6e 64 28 |omialLow|erBound(|
|000040e0| 30 2e 39 35 2c 63 50 74 | 72 2d 3e 63 6f 72 72 65 |0.95,cPt|r->corre|
|000040f0| 63 74 2c 63 50 74 72 2d | 3e 74 72 69 61 6c 73 29 |ct,cPtr-|>trials)|
|00004100| 2c 0d 09 09 09 09 09 09 | 42 69 6e 6f 6d 69 61 6c |,.......|Binomial|
|00004110| 55 70 70 65 72 42 6f 75 | 6e 64 28 30 2e 39 35 2c |UpperBou|nd(0.95,|
|00004120| 63 50 74 72 2d 3e 63 6f | 72 72 65 63 74 2c 63 50 |cPtr->co|rrect,cP|
|00004130| 74 72 2d 3e 74 72 69 61 | 6c 73 29 29 3b 0d 09 09 |tr->tria|ls));...|
|00004140| 09 09 7d 0d 09 09 09 09 | 65 6c 73 65 0d 09 09 09 |..}.....|else....|
|00004150| 09 09 66 70 72 69 6e 74 | 66 28 70 6c 6f 74 46 69 |..fprint|f(plotFi|
|00004160| 6c 65 2c 22 5c 74 5c 74 | 5c 74 22 29 3b 0d 09 09 |le,"\t\t|\t");...|
|00004170| 09 09 66 70 72 69 6e 74 | 66 28 70 6c 6f 74 46 69 |..fprint|f(plotFi|
|00004180| 6c 65 2c 22 5c 74 25 2e | 33 66 22 2c 28 2a 4d 6f |le,"\t%.|3f",(*Mo|
|00004190| 64 65 6c 46 75 6e 63 74 | 69 6f 6e 29 28 63 50 74 |delFunct|ion)(cPt|
|000041a0| 72 2d 3e 63 6f 6e 74 72 | 61 73 74 2c 26 70 61 72 |r->contr|ast,&par|
|000041b0| 61 6d 73 29 29 3b 0d 09 | 09 09 09 69 66 28 63 50 |ams));..|...if(cP|
|000041c0| 74 72 2d 3e 74 72 69 61 | 6c 73 3e 30 29 0d 09 09 |tr->tria|ls>0)...|
|000041d0| 09 09 09 66 70 72 69 6e | 74 66 28 70 6c 6f 74 46 |...fprin|tf(plotF|
|000041e0| 69 6c 65 2c 22 5c 74 25 | 2e 33 66 5c 74 25 35 6c |ile,"\t%|.3f\t%5l|
|000041f0| 64 5c 74 25 35 6c 64 22 | 2c 0d 09 09 09 09 09 09 |d\t%5ld"|,.......|
|00004200| 6d 6f 6e 6f 74 6f 6e 69 | 63 44 61 74 61 2e 63 5b |monotoni|cData.c[|
|00004210| 69 5d 2e 63 6f 72 72 65 | 63 74 2f 28 64 6f 75 62 |i].corre|ct/(doub|
|00004220| 6c 65 29 6d 6f 6e 6f 74 | 6f 6e 69 63 44 61 74 61 |le)monot|onicData|
|00004230| 2e 63 5b 69 5d 2e 74 72 | 69 61 6c 73 2c 0d 09 09 |.c[i].tr|ials,...|
|00004240| 09 09 09 09 63 50 74 72 | 2d 3e 74 72 69 61 6c 73 |....cPtr|->trials|
|00004250| 2c 63 50 74 72 2d 3e 63 | 6f 72 72 65 63 74 29 3b |,cPtr->c|orrect);|
|00004260| 0d 09 09 09 09 65 6c 73 | 65 20 66 70 72 69 6e 74 |.....els|e fprint|
|00004270| 66 28 70 6c 6f 74 46 69 | 6c 65 2c 22 5c 74 5c 74 |f(plotFi|le,"\t\t|
|00004280| 5c 74 22 29 3b 0d 09 09 | 09 09 69 66 28 69 3c 50 |\t");...|..if(i<P|
|00004290| 41 52 41 4d 53 29 66 70 | 72 69 6e 74 66 28 70 6c |ARAMS)fp|rintf(pl|
|000042a0| 6f 74 46 69 6c 65 2c 22 | 5c 74 25 73 3d 25 2e 33 |otFile,"|\t%s=%.3|
|000042b0| 66 22 2c 70 61 72 61 6d | 4e 61 6d 65 5b 69 5d 2c |f",param|Name[i],|
|000042c0| 70 61 72 61 6d 50 74 72 | 5b 69 5d 29 3b 0d 09 09 |paramPtr|[i]);...|
|000042d0| 09 09 69 66 28 69 3d 3d | 30 29 66 70 72 69 6e 74 |..if(i==|0)fprint|
|000042e0| 66 28 70 6c 6f 74 46 69 | 6c 65 2c 22 5c 74 61 6c |f(plotFi|le,"\tal|
|000042f0| 70 68 61 3d 25 2e 34 66 | 22 2c 70 6f 77 28 31 30 |pha=%.4f|",pow(10|
|00004300| 2e 30 2c 70 61 72 61 6d | 50 74 72 5b 30 5d 29 29 |.0,param|Ptr[0]))|
|00004310| 3b 0d 09 09 09 09 69 66 | 28 69 3d 3d 50 41 52 41 |;.....if|(i==PARA|
|00004320| 4d 53 29 66 70 72 69 6e | 74 66 28 70 6c 6f 74 46 |MS)fprin|tf(plotF|
|00004330| 69 6c 65 2c 22 5c 74 73 | 69 67 6e 69 66 69 63 61 |ile,"\ts|ignifica|
|00004340| 6e 63 65 3d 25 2e 33 66 | 22 2c 73 69 67 6e 69 66 |nce=%.3f|",signif|
|00004350| 69 63 61 6e 63 65 29 3b | 0d 09 09 09 09 66 70 72 |icance);|.....fpr|
|00004360| 69 6e 74 66 28 70 6c 6f | 74 46 69 6c 65 2c 22 5c |intf(plo|tFile,"\|
|00004370| 6e 22 29 3b 0d 09 09 09 | 7d 0d 09 09 09 69 66 28 |n");....|}....if(|
|00004380| 70 6c 6f 74 46 69 6c 65 | 29 66 63 6c 6f 73 65 28 |plotFile|)fclose(|
|00004390| 70 6c 6f 74 46 69 6c 65 | 29 3b 0d 09 09 7d 0d 09 |plotFile|);...}..|
|000043a0| 7d 0d 09 69 66 28 66 69 | 74 46 69 6c 65 29 66 63 |}..if(fi|tFile)fc|
|000043b0| 6c 6f 73 65 28 66 69 74 | 46 69 6c 65 29 3b 0d 09 |lose(fit|File);..|
|000043c0| 69 66 28 64 61 74 61 46 | 69 6c 65 29 66 63 6c 6f |if(dataF|ile)fclo|
|000043d0| 73 65 28 64 61 74 61 46 | 69 6c 65 29 3b 0d 7d 0d |se(dataF|ile);.}.|
|000043e0| 0d 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000043f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004400| 00 00 01 00 00 00 02 b0 | 00 00 01 b0 00 00 00 7a |........|.......z|
|00004410| 69 6f 6e 4e 61 6d 65 29 | 3b 0d 09 09 09 66 6f 72 |ionName)|;....for|
|00004420| 28 69 3d 30 3b 69 3c 64 | 61 74 61 2e 63 6f 6e 74 |(i=0;i<d|ata.cont|
|00004430| 08 51 75 69 63 6b 33 2e | 63 00 02 00 00 00 50 61 |.Quick3.|c.....Pa|
|00004440| 72 74 53 49 54 21 00 00 | 00 00 00 00 00 00 00 00 |rtSIT!..|........|
|00004450| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00004460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004470| 00 00 ab bf ee 4d 00 00 | 00 00 00 00 03 2a 2e 33 |.....M..|.....*.3|
|00004480| 66 5c 74 25 35 6c 64 5c | 74 25 35 6c 64 5c 6e 22 |f\t%5ld\|t%5ld\n"|
|00004490| 2c 0d 09 09 09 09 09 63 | 50 74 72 2d 3e 63 6f 6e |,......c|Ptr->con|
|000044a0| 74 72 61 73 74 2c 0d 09 | 09 09 09 09 63 50 74 72 |trast,..|....cPtr|
|000044b0| 2d 3e 63 6f 72 72 65 63 | 74 2f 28 64 6f 75 62 6c |->correc|t/(doubl|
|000044c0| 65 29 63 50 74 72 2d 3e | 74 72 69 61 6c 73 2c 0d |e)cPtr->|trials,.|
|000044d0| 09 09 09 09 09 57 65 69 | 62 75 6c 6c 28 63 50 74 |.....Wei|bull(cPt|
|000044e0| 72 2d 3e 63 6f 6e 74 72 | 61 73 74 2c 26 70 61 72 |r->contr|ast,&par|
|000044f0| 61 6d 73 29 2c 0d 09 09 | 09 09 09 6d 6f 6e 6f 74 |ams),...|...monot|
|00004500| 00 00 00 1e 00 00 34 b0 | 01 2f 00 00 00 00 00 00 |......4.|./......|
|00004510| 37 64 01 44 00 00 00 00 | 00 00 31 87 01 1c 00 00 |7d.D....|..1.....|
|00004520| 00 00 00 00 00 fa 00 09 | 00 16 00 00 2f 84 01 0c |........|..../...|
|00004530| 00 2a 36 c4 00 00 07 50 | 41 52 41 4d 53 20 00 16 |.*6....P|ARAMS ..|
|00004540| 00 00 2f 84 01 0c 00 2a | 36 c8 00 00 07 6d 6f 64 |../....*|6....mod|
|00004550| 65 6c 44 46 00 1c 00 00 | 35 14 01 31 00 2a 36 cc |elDF....|5..1.*6.|
|00004560| 00 00 0d 4d 41 58 5f 43 | 4f 4e 54 52 41 53 54 53 |...MAX_C|ONTRASTS|
|00004570| 00 1e 00 00 37 4b 01 42 | 00 2a 36 94 00 00 0f 64 |....7K.B|.*6....d|
|00004580| 61 74 61 2e 63 6f 6e 74 | 72 61 73 74 73 20 00 18 |ata.cont|rasts ..|
|00004590| 00 00 37 64 01 44 00 2a | 36 98 00 00 09 64 61 74 |..7d.D.*|6....dat|
|000045a0| 61 2e 63 5b 30 5d 00 18 | 00 00 37 64 01 44 00 2a |a.c[0]..|..7d.D.*|
|000045b0| 36 88 00 00 09 64 61 74 | 61 2e 63 5b 31 5d 00 18 |6....dat|a.c[1]..|
|000045c0| 00 00 37 64 01 44 00 2a | 36 78 00 00 09 64 61 74 |..7d.D.*|6x...dat|
|000045d0| 61 2e 63 5b 36 5d 00 26 | 00 00 37 64 01 44 00 2a |a.c[6].&|..7d.D.*|
|000045e0| 36 5c 40 00 00 b8 01 46 | 01 61 02 75 94 20 00 00 |6\@....F|.a.u. ..|
|000045f0| 00 00 00 20 07 64 61 74 | 61 2e 63 20 00 24 00 00 |... .dat|a.c .$..|
|00004600| 37 64 01 44 00 2a 35 d0 | 80 00 00 cc 01 4a 01 75 |7d.D.*5.|.....J.u|
|00004610| 02 79 94 20 00 00 00 00 | 00 00 05 64 61 74 61 20 |.y. ....|...data |
|00004620| 00 00 00 38 00 04 00 00 | 3c 51 00 00 3c 53 03 69 |...8....|<Q..<S.i|
|00004630| 66 00 00 00 37 66 00 00 | 37 68 03 69 66 00 00 00 |f...7f..|7h.if...|
|00004640| 26 c4 00 00 26 c8 05 6d | 61 69 6e 00 00 00 27 2f |&...&..m|ain...'/|
|00004650| 00 00 27 35 07 51 75 69 | 63 6b 33 00 00 00 00 48 |..'5.Qui|ck3....H|
|00004660| 00 09 4d 6f 6e 61 63 6f | 00 00 00 00 00 00 00 00 |..Monaco|........|
|00004670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004680| 00 00 00 03 00 04 00 3d | 00 03 01 a0 02 7d 00 3d |.......=|.....}.=|
|00004690| 00 03 01 a0 02 7d ab 4a | 34 ac 00 00 2a d5 00 00 |.....}.J|4...*...|
|000046a0| 2a d5 00 00 24 e5 00 00 | 00 00 00 04 00 01 00 01 |*...$...|........|
|000046b0| 00 00 01 00 00 00 02 b0 | 00 00 01 b0 00 00 00 7a |........|.......z|
|000046c0| 01 d1 89 a8 24 ba 00 00 | 00 1c 00 7a 00 03 4d 50 |....$...|...z..MP|
|000046d0| 53 52 00 01 00 22 42 4b | 50 54 00 00 00 3a 44 54 |SR..."BK|PT...:DT|
|000046e0| 56 55 00 00 00 46 4d 57 | 42 42 00 00 00 52 03 ef |VU...FMW|BB...R..|
|000046f0| ff ff 00 00 01 20 00 00 | 00 00 03 ed ff ff 00 00 |..... ..|........|
|00004700| 01 5c 00 00 00 00 48 bd | ff ff 00 00 00 00 00 00 |.\....H.|........|
|00004710| 00 00 6c 73 ff ff 00 00 | 00 22 00 00 00 00 03 f0 |..ls....|."......|
|00004720| ff ff 00 00 01 a8 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+